virtual Real variance() const
Calc variance.
Definition: Binomial.h:42
Beta_< Real > Beta
Definition: Beta.h:57
Generate a random variate from a beta distribution .
Definition: Beta.h:30
Random number generator interface.
Definition: Gen.h:11
virtual Real pdf(Real x) const
Probability Density Function.
Definition: Binomial.cpp:48
virtual Real cdfInv(Real P) const
Inverse of the CDF.
Definition: Binomial.cpp:69
Class to evaluate Gamma and related functions.
Definition: Gamma.h:9
GammaFunc_< Real > GammaFunc
Definition: Gamma.h:100
Binomial_< Real > Binomial
Definition: Binomial.h:55
Binomial_< Float > Binomial_f
Definition: Binomial.h:56
Binomial_< Double > Binomial_d
Definition: Binomial.h:57
#define assert(...)
Forwards to assert_#args. See assert_1(), assert_2().
Definition: Debug.h:24
virtual Real next() const
Get next randomly distributed variate. Requires a random generator (see ctor or setGen()) ...
Definition: Binomial.cpp:11
virtual Real mean() const
Calc mean.
Definition: Binomial.h:41
float Real
Real number type. See Real_ for real number operations and constants.
Definition: Real.h:21
Numeric type information, use numeral() to get instance safely from a static context.
Definition: Numeral.h:17
static Real trialProb(Int x, Int n, Real P)
Calculate trial probability given all other values.
Definition: Binomial.cpp:79
Binomial_(RandomGen &gen, Int n, Real p)
Definition: Binomial.h:35
Generate a random integer variate from a binomial distribution.
Definition: Binomial.h:25
Int n
Definition: Binomial.h:51
Real p
Definition: Binomial.h:52
Global Honeycomb namespace.
virtual Real cdf(Real x) const
Cumulative Distribution Function.
Definition: Binomial.cpp:58
Base class for all random distributions.
Definition: Dist.h:15