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


CNNegExp -- Negative Exponential Distribution

SYNOPSIS

#include <CNCL/NegExp.h>

TYPE

CN_NEGEXP

BASE CLASSES

CNRandom

DERIVED CLASSES

None

RELATED CLASSES

CNRNG

DESCRIPTION

CNNegExp is a class for generating negative exponential distributed random numbers.

Constructors:

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

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

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


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