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


CNPoisson -- Poisson Distribution

SYNOPSIS

#include <CNCL/Poisson.h>

TYPE

CN_POISSON

BASE CLASSES

CNRandom

DERIVED CLASSES

None

RELATED CLASSES

CNRNG

DESCRIPTION

CNPoisson is a class for generating Poisson distributed random numbers.

Constructors:

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

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

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


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