Go to the previous, next section.

CNBeta -- Beta Distribution

SYNOPSIS

#include <CNCL/Beta.h>

TYPE

CN_BETA

BASE CLASSES

CNRandom

DERIVED CLASSES

None

RELATED CLASSES

CNRNG

DESCRIPTION

CNBeta is a class for generating beta distributed random numbers.

Constructors:

CNBeta();
CNBeta(CNParam *param);
CNBeta(long a, long b, CNRNG *gen);
Initializes a CNBeta distribution with a base random number generator gen and the parameters a and b.

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

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

Go to the previous, next section.