def initial_global_state(self):
Returns the initial global state for the GaussianAverageQuery.
sum_global_state = self._numerator.initial_global_state()
return self._GlobalState(sum_global_state, float(self._denominator))
def derive_sample_params(self, global_state):
Given the global state, derives parameters to use for the next sample.
After Change
def initial_global_state(self):
Returns the initial global state for the GaussianAverageQuery.
// GaussianAverageQuery has no global state beyond the numerator state.
return self._numerator.initial_global_state()
def derive_sample_params(self, global_state):
Given the global state, derives parameters to use for the next sample.