Function cmb_random_pascal
Defined in File cmb_random.h
Function Documentation
-
static inline unsigned cmb_random_pascal(const unsigned m, const double p)
Pascal distribution an alias for the negative binomial distribution,
cmb_random_negative_binomial(), the number of failures before themth success in independent Bernoulli trials each with probabilityp, sampled with replacement (or equivalently from an infinite pool).See also https://en.wikipedia.org/wiki/Negative_binomial_distribution