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


CNNormal -- Normal Distribution

SYNOPSIS

#include <CNCL/Normal.h>

TYPE

CN_NORMAL

BASE CLASSES

CNRandom

DERIVED CLASSES

CNRayleigh, CNRice

RELATED CLASSES

CNRNG

DESCRIPTION

CNNormal is a class for generating normal (Gaussian) distributed random numbers.

Constructors:

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

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

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


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