Go to the previous, next section.
#include <CNCL/Binomial.h>
CN_BINOMIAL
CNRandom
None
CNRNG
CNBinomial is a class for generating binomial distributed random
numbers.
Constructors:
CNBinomial();
CNBinomial(CNParam *param);
CNBinomial(int n, double u, CNRNG *gen);
CNBinomial distribution with a base random number
generator gen, and the parameters n and u.
In addition to the member functions required by CNCL, CNBinomial
provides:
int n();
int n(int xn);
double u();
double u(double xu);
virtual double operator() ();
Go to the previous, next section.