12 #ifndef SST_CORE_RNG_POISSON_H 13 #define SST_CORE_RNG_POISSON_H 75 const double L = exp(-lambda);
106 SST_SER(const_cast<double&>(lambda));
136 #endif // SST_CORE_RNG_POISSON_H Implements the base class for random number generators for the SST core.
Definition: rng.h:29
Definition: constant.h:18
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:42
PoissonDistribution()
Default constructor.
Definition: poisson.h:96
bool deleteDistrib
Controls whether the base distribution should be deleted when this class is destructed.
Definition: poisson.h:129
ImplementSerializable(PoissonDistribution) protected Random * baseDistrib
Serialization macro.
Definition: poisson.h:114
~PoissonDistribution()
Destroys the Poisson distribution.
Definition: poisson.h:62
Implements a Mersenne-based RNG for use in the SST core or components.
Definition: mersenne.h:34
double getNextDouble() override
Gets the next (random) double value in the distribution.
Definition: poisson.h:73
double getLambda()
Gets the lambda with which the distribution was created.
Definition: poisson.h:91
PoissonDistribution(const double mn, Random *baseDist)
Creates an Poisson distribution with a specific lambda and a base random number generator.
Definition: poisson.h:50
PoissonDistribution(const double mn)
Creates an Poisson distribution with a specific lambda.
Definition: poisson.h:36
Creates an Poisson distribution for use within SST.
Definition: poisson.h:28
Base class of statistical distributions in SST.
Definition: distrib.h:23
void serialize_order(SST::Core::Serialization::serializer &ser) override
Serialization function for checkpoint.
Definition: poisson.h:104