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


CNDeterm -- Deterministic Distribution

SYNOPSIS

#include <CNCL/Determ.h>

TYPE

CN_DETERM

BASE CLASSES

CNRandom

DERIVED CLASSES

None

RELATED CLASSES

CNRNG

DESCRIPTION

CNDeterm is a class for generating deterministic "random" numbers, i.e. it always generates the same value. This is useful for mixed distributions.

Constructors:

CNDeterm();
CNDeterm(CNParam *param);
CNDeterm(double value, CNRNG *gen);
Initializes a CNDeterm distribution with value.

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

double value();
double mean();
double value(double x);
double mean(double x);
Gets/sets the deterministic value.
virtual double operator() ();
Draws a deterministic (i.e. not random) number.


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