The util submodule

Contents:

class multibeep.util.gaussian_posterior(float_t mean, float_t variance)

Bases: multibeep.util.posterior_class

class multibeep.util.posterior_class

Bases: object

base class for all posteriors

cdf(self, float_t x)
mean(self)

posterior’s mean

Returns:float – the mean of the posterior or None if the posterior is invalid
pdf(self, float_t x)

evaluates the posterior for the mean

Parameters:x (float) – where to evaluate the pdf
Returns:float – the pdf value at x or None if the posterior is invalid
quantile(self, float_t x)
support(self, float_t delta)
valid(self)

checks if the posterior is useful

Returns:bool – False, if the posterior is not valid, e.g. when not enough pulls have been performed.
variance(self)

variance of the posterior over the mean

Returns:float – the variance of the posterior or None if the posterior is invalid
class multibeep.util.rng_class(int seed)

Bases: object

a pseudo random number generator

Parameters:seed (int) – to initialize the PRNG in a specific state