Go to the first, previous, next, last section, table of contents.


CNRandom -- Abstract Random Distribution Base Class

SYNOPSIS

#include <CNCL/Random.h>

TYPE

CN_RANDOM

BASE CLASSES

CNObject

DERIVED CLASSES

CNBeta, CNBinomial, CNDeterm, CNDiracTab, CNDiscUniform, CNErlang, CNGeometric, CNHyperExp, CNHyperGeom, CNInterTab, CNLogNormal, CNMDeterm, CNNegExp, CNNormal, CNPoisson, CNRandomMix, CNRayleigh, CNRice, CNTab, CNUniform, CNWeibull

RELATED CLASSES

CNRNG

DESCRIPTION

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);
Initializes CNRandom with a base random number generator.

In addition to the member functions required by CNCL, CNRandom provides:

CNRNG *generator();
Returns a pointer to the actually used CNRNG.
void generator(CNRNG *gen);
Sets the CNRNG used by CNRandom to gen.
virtual double operator() () = 0;
double draw();
Draws a random number from the distribution. The operator () must be defined in the derived classes.


Go to the first, previous, next, last section, table of contents.