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


CNLogNormal -- Log-normal Distribution

SYNOPSIS

#include <CNCL/LogNormal.h>

TYPE

CN_LOGNORMAL

BASE CLASSES

CNNormal

DERIVED CLASSES

None

RELATED CLASSES

CNRNG

DESCRIPTION

CNLogNormal is a class for generating logarithmic normal distributed random numbers.

Constructors:

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

In addition to the member functions required by CNCL, CNLogNormal 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 logarithmic normal distributed random number.


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