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


CNHyperExp -- Hyperexponential Distribution

SYNOPSIS

#include <CNCL/HyperExp.h>

TYPE

CN_HYPEREXP

BASE CLASSES

CNRandom

DERIVED CLASSES

None

RELATED CLASSES

CNRNG

DESCRIPTION

CNHyperExp is a class for generating hyperexponential distributed random numbers. CNHyperExp is a mixed distribution of two negative exponential distributions (H2).

Constructors:

CNHyperExp();
CNHyperExp(CNParam *param);
CNHyperExp(double p, double m1, double m2, CNRNG *gen);
Initializes a CNHyperExp distribution with a base random number generator gen, the mixprobability p and the intensity parameters m1 and m2.

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

virtual double operator() ();
Draws a hyperexponential distributed random number.


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