Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

CNErlang Class Reference

The class CNErlang is a class for generating Erlang-k distributed random numbers. More...

#include <Erlang.h>

Inheritance diagram for CNErlang::

CNRandom CNObject CNCL List of all members.

Public Methods

double mean ()
 Gets the mean value of the distribution.

double mean (double x)
 Sets the mean value of the distribution.

double variance ()
 Gets the variance of the distribution.

double variance (double x)
 Sets the variance of the distribution.

virtual double operator() ()
 Draws a Erlang-k distributed random number.

 CNErlang ()
 Default constructor.

 CNErlang (CNParam *param)
 CNParam constructor.

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

virtual CNClassDesc class_desc () const
 Returns the class description (pointer to instance of CNClass) for runtime type information.

virtual bool is_a (CNClassDesc desc) const
 Checks Type.

virtual void print (ostream &strm=cout) const
 Print output.

virtual void dump (ostream &strm=cout) const
 Debug output.


Static Public Methods

CNErlang * cast_from_object (CNObject *obj)
 Safes type Cast.

CNObjectnew_object (CNParam *param=NIL)
 Creates new Object.


Protected Methods

void setState ()
 Makes Calculations.


Protected Attributes

double pMean
 FIXME: Undocumented.

double pVariance
 FIXME: Undocumented.

int k
 FIXME: Undocumented.

double a
 FIXME: Undocumented.


Detailed Description

The class CNErlang is a class for generating Erlang-k distributed random numbers.


The documentation for this class was generated from the following file:
Generated on Fri Feb 1 19:54:45 2002 for CNCL by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001