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


CNHyperGeom -- Hypergeometrical Distribution

SYNOPSIS

#include <CNCL/HyperGeom.h>

TYPE

CN_HYPERGEOM

BASE CLASSES

CNRandom

DERIVED CLASSES

None

RELATED CLASSES

CNRNG

DESCRIPTION

CNHyperGeom is a class for generating hypergeometrical distributed random numbers.

Constructors:

CNHyperGeom();
CNHyperGeom(CNParam *param);
CNHyperGeom(double mean, double variance, CNRNG *gen);
Initializes a CNHyperGeom distribution with a base random number generator gen, mean value mean and variance variance.

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

double mean();
double mean(double x);
double variance();
double variance(double x);
Gets/sets the values for mean and variance.
virtual double operator() ();
Draws a hypergeometrical distributed random number.


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