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


CNUniform -- Uniform Distribution

SYNOPSIS

#include <CNCL/Uniform.h>

TYPE

CN_UNIFORM

BASE CLASSES

CNRandom

DERIVED CLASSES

None

RELATED CLASSES

CNRNG

DESCRIPTION

CNUniform generates uniform distributed random numbers within the interval limits low and high.

Constructors:

CNUniform();
CNUniform(CNParam *param);
CNUniform(double low, double high, CNRNG *gen);
Initializes a CNUniform distribution with a base random number generator gen and interval limits low and high.

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

double low();
double low(double x);
double high();
double high(double x);
Gets/sets the values for the limits.
virtual double operator() ();
Draws a uniform distributed random number.


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