12 #ifndef _H_SST_CORE_RNG_POISSON
13 #define _H_SST_CORE_RNG_POISSON
53 baseDistrib = baseDist;
54 deleteDistrib =
false;
71 const double L = exp(-lambda);
77 p *= baseDistrib->nextUniform();
Definition: constant.h:22
Base class of statistical distributions in SST.
Definition: distrib.h:24
SSTRandom * baseDistrib
Sets the base random number generator for the distribution.
Definition: poisson.h:99
double getLambda()
Gets the lambda with which the distribution was created.
Definition: poisson.h:87
SSTPoissonDistribution(const double mn, SSTRandom *baseDist)
Creates an Poisson distribution with a specific lambda and a base random number generator.
Definition: poisson.h:50
const double lambda
Sets the lambda of the Poisson distribution.
Definition: poisson.h:95
bool deleteDistrib
Controls whether the base distribution should be deleted when this class is destructed.
Definition: poisson.h:104
Implements a Mersenne-based RNG for use in the SST core or components.
Definition: mersenne.h:34
Creates an Poisson distribution for use within SST.
Definition: poisson.h:31
~SSTPoissonDistribution()
Destroys the Poisson distribution.
Definition: poisson.h:60
Implements the base class for random number generators for the SST core.
Definition: sstrng.h:27
double getNextDouble()
Gets the next (random) double value in the distribution.
Definition: poisson.h:70
SSTPoissonDistribution(const double mn)
Creates an Poisson distribution with a specific lambda.
Definition: poisson.h:38