#include <distrib.h>
Inheritance diagram for Distrib:
Public Member Functions | |
virtual double | GetVal (void)=0 |
Static Public Member Functions | |
static void | InitRng (unsigned long int seed=0) |
Protected Member Functions | |
Distrib (void) | |
double | Pick (void) |
Must be implemented in derived classes. The derived GetVal(void) will call Pick(void) and will operate with the result to give succesive random numbers properly distributed.
|
Only one random number generator may exist, no matter how many distributions are used by the simulation model. |
|
Gets next random number according to the class' distribution.
Implemented in Constant, Unif01, Uniform, Exponential, Normal, ErlangK, Pareto, HyperExponential, and DiscreteEmpirical. |
|
Seed initiator, must be called before any derived "GetVal". If no seed is given or seed==0, a random one will be automatically chosen
|
|
Picks next random number. Succesive calls return evenly distributed random numbers in [0,1) It is available only to derived classes. |