Go to the previous, next section.
#include <CNCL/Random.h>
CN_RANDOM
CNObject
CNBeta, CNBinomial, CNDeterm, CNDiracTab, CNDiscUniform, CNErlang, CNGeometric, CNHyperExp, CNHyperGeom, CNInterTab, CNLogNormal, CNMDeterm, CNNegExp, CNNormal, CNPoisson, CNRandomMix, CNRayleigh, CNRice, CNTab, CNUniform, CNWeibull
CNRNG
CNRandom is the abstract base class for all CNCL random number
distributions. It defines a common interface to access to all derived
RNG classes in a common way.
Constructors:
CNRandom(CNRNG *gen);
CNRandom(CNParam *param);
CNRandom with a base random number generator.
In addition to the member functions required by CNCL, CNRandom
provides:
CNRNG *generator();
void generator(CNRNG *gen);
CNRandom to gen.
virtual double operator() () = 0;
double draw();
()
must be defined in the derived classes.
Go to the previous, next section.