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


CNRayleigh -- Rayleigh Distribution

SYNOPSIS

#include <CNCL/Rayleigh.h>

TYPE

CN_RAYLEIGH

BASE CLASSES

CNNormal

DERIVED CLASSES

None

RELATED CLASSES

CNRNG

DESCRIPTION

CNRayleigh is a class for generating Rayleigh distributed random numbers.

Constructors:

CNRayleigh();
CNRayleigh(CNParam *param);
CNRayleigh(double variance, CNRNG *gen);
Initializes a CNRayleigh distribution with a base random number generator gen and variance variance. The variance is the one passed to the CNNormal base class, not the actual value of the Rayleigh distribution.

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

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


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