#include <CNCL/Geometric.h>
CN_GEOMETRIC
CNRandom
None
CNRNG
CNGeometric
is a class for generating geometric distributed random
numbers.
Constructors:
CNGeometric();
CNGeometric(CNParam *param);
CNGeometric(double mean, CNRNG *gen);
CNGeometric
distribution with a base random number
generator gen
and the value mean
as a parameter for the
random generator.
NOTE: Please do NOT take this parameter as the distrbution`s mean
(`MEAN`) value. This can be calculated as:
MEAN = 1 / ( 1 - mean
)
In addition to the member functions required by CNCL, CNGeometric
provides:
double mean();
double mean(double x);
virtual double operator() ();
Go to the first, previous, next, last section, table of contents.