Beta_< Real > Beta
Definition: Beta.h:57
Generate a random variate from a beta distribution .
Definition: Beta.h:30
Gamma_< Real > Gamma
Definition: Gamma.h:54
Random number generator interface.
Definition: Gen.h:11
Gaussian_< Real > Gaussian
Definition: Gaussian.h:56
Generate a random integer variate from a poisson distribution.
Definition: Poisson.h:28
Real p
Definition: BinomialNeg.h:55
virtual Real variance() const
Calc variance.
Definition: BinomialNeg.h:45
BinomialNeg_< Double > BinomialNeg_d
Definition: BinomialNeg.h:60
BinomialNeg_< Float > BinomialNeg_f
Definition: BinomialNeg.h:59
BinomialNeg_(RandomGen &gen, Real n, Real p)
Definition: BinomialNeg.h:38
virtual Real pdf(Real x) const
Probability Density Function.
Definition: BinomialNeg.cpp:19
virtual Real next() const
Get next randomly distributed variate. Requires a random generator (see ctor or setGen()) ...
Definition: BinomialNeg.cpp:11
Generate a random variate from a gamma distribution .
Definition: Gamma.h:29
Class to evaluate Gamma and related functions.
Definition: Gamma.h:9
GammaFunc_< Real > GammaFunc
Definition: Gamma.h:100
Poisson_< Real > Poisson
Definition: Poisson.h:59
virtual Real cdfInv(Real P) const
Inverse of the CDF.
Definition: BinomialNeg.cpp:36
Generate a random integer variate from a negative binomial distribution.
Definition: BinomialNeg.h:26
#define assert(...)
Forwards to assert_#args. See assert_1(), assert_2().
Definition: Debug.h:24
virtual Real mean() const
Calc mean.
Definition: BinomialNeg.h:44
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
BinomialNeg_< Real > BinomialNeg
Definition: BinomialNeg.h:58
static Num sqr(Num x)
Square.
Definition: Alge.h:60
static Real trialProb(Int x, Real n, Real P)
Calculate trial probability given all other values.
Definition: BinomialNeg.cpp:87
virtual Real cdf(Real x) const
Cumulative Distribution Function.
Definition: BinomialNeg.cpp:27
Generate a normally (Gaussian) distributed random variate.
Definition: Gaussian.h:26
Global Honeycomb namespace.
Real n
Definition: BinomialNeg.h:54
Base class for all random distributions.
Definition: Dist.h:15