SST 12.1.0
Structural Simulation Toolkit
SST::RNG::PoissonDistribution Class Reference

Creates an Poisson distribution for use within SST. More...

#include "sst/core/rng/poisson.h"

Inheritance diagram for SST::RNG::PoissonDistribution:
SST::RNG::RandomDistribution

Public Member Functions

 PoissonDistribution (const double mn)
 Creates an Poisson distribution with a specific lambda. More...
 
 PoissonDistribution (const double mn, SST::RNG::Random *baseDist)
 Creates an Poisson distribution with a specific lambda and a base random number generator. More...
 
 ~PoissonDistribution ()
 Destroys the Poisson distribution.
 
double getNextDouble ()
 Gets the next (random) double value in the distribution. More...
 
double getLambda ()
 Gets the lambda with which the distribution was created. More...
 
- Public Member Functions inherited from SST::RNG::RandomDistribution
virtual double getNextDouble ()=0
 Obtains the next double from the distribution. More...
 
virtual ~RandomDistribution ()
 Destroys the distribution.
 
 RandomDistribution ()
 Creates the base (abstract) class of a distribution.
 

Protected Attributes

const double lambda
 Sets the lambda of the Poisson distribution.
 
SST::RNG::RandombaseDistrib
 Sets the base random number generator for the distribution.
 
bool deleteDistrib
 Controls whether the base distribution should be deleted when this class is destructed.
 

Detailed Description

Creates an Poisson distribution for use within SST.

This distribution is the same across platforms and compilers.

Constructor & Destructor Documentation

◆ PoissonDistribution() [1/2]

PoissonDistribution::PoissonDistribution ( const double  mn)
inline

Creates an Poisson distribution with a specific lambda.

Parameters
mnThe lambda of the Poisson distribution

References baseDistrib, and deleteDistrib.

◆ PoissonDistribution() [2/2]

PoissonDistribution::PoissonDistribution ( const double  mn,
SST::RNG::Random baseDist 
)
inline

Creates an Poisson distribution with a specific lambda and a base random number generator.

Parameters
lambdaThe lambda of the Poisson distribution
baseDistThe base random number generator to take the distribution from.

References baseDistrib, and deleteDistrib.

Member Function Documentation

◆ getLambda()

double PoissonDistribution::getLambda ( )
inline

Gets the lambda with which the distribution was created.

Returns
The lambda which the user created the distribution with

References lambda.

◆ getNextDouble()

double PoissonDistribution::getNextDouble ( )
inlinevirtual

Gets the next (random) double value in the distribution.

Returns
The next random double from the distribution

Implements SST::RNG::RandomDistribution.

References baseDistrib, lambda, and SST::RNG::Random::nextUniform().


The documentation for this class was generated from the following files: