#include <Erlang.h>
Inheritance diagram for CNErlang::

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. | |
| CNObject * | new_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. | |
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001