SST
13.0.0
StructuralSimulationToolkit

Creates a discrete distribution for use within SST. More...
#include "sst/core/rng/discrete.h"
Public Member Functions  
DiscreteDistribution (const double *probs, const uint32_t probsCount)  
Creates a discrete probability distribution. More...  
DiscreteDistribution (const double *probs, const uint32_t probsCount, SST::RNG::Random *baseDist)  
Creates an exponential distribution with a specific lambda and a base random number generator. More...  
~DiscreteDistribution ()  
Destroys the exponential distribution.  
double  getNextDouble () 
Gets the next (random) double value in the distribution. More...  
Public Member Functions inherited from SST::RNG::RandomDistribution  
virtual  ~RandomDistribution () 
Destroys the distribution.  
RandomDistribution ()  
Creates the base (abstract) class of a distribution.  
Protected Attributes  
SST::RNG::Random *  baseDistrib 
Sets the base random number generator for the distribution.  
bool  deleteDistrib 
Controls whether the base distribution should be deleted when this class is destructed.  
double *  probabilities 
The discrete probability list.  
uint32_t  probCount 
Count of discrete probabilities.  
Creates a discrete distribution for use within SST.
This distribution is the same across platforms and compilers.

inline 
Creates a discrete probability distribution.
probs  An array of probabilities for each outcome 
probsCount  The number of discrete outcomes 

inline 
Creates an exponential distribution with a specific lambda and a base random number generator.
lambda  The lambda of the exponential distribution 
baseDist  The base random number generator to take the distribution from. 

inlinevirtual 
Gets the next (random) double value in the distribution.
Implements SST::RNG::RandomDistribution.