SST 12.1.0
Structural Simulation Toolkit

Creates a Uniform distribution for use within SST. More...
#include "sst/core/rng/uniform.h"
Public Member Functions  
UniformDistribution (const uint32_t probsCount)  
Creates an uniform distribution with a specific number of bins. More...  
UniformDistribution (const uint32_t probsCount, SST::RNG::Random *baseDist)  
Creates a Uniform distribution with a specific number of bins and user supplied random number generator. More...  
~UniformDistribution ()  
Destroys the distribution and will delete locally allocated RNGs.  
double  getNextDouble () 
Gets the next (random) double value in the distribution. 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  
SST::RNG::Random *  baseDistrib 
Sets the base random number generator for the distribution.  
const bool  deleteDistrib 
Controls whether the base distribution should be deleted when this class is destructed.  
const uint32_t  probCount 
Count of discrete probabilities.  
double  probPerBin 
Range 0..1 split into discrete bins.  
Creates a Uniform distribution for use within SST.
This distribution is the same across platforms and compilers.

inline 
Creates an uniform distribution with a specific number of bins.
probsCount  Number of probability bins in this distribution 
References baseDistrib, probCount, and probPerBin.

inline 
Creates a Uniform distribution with a specific number of bins and user supplied random number generator.
probsCount  Number of probability bins in the distribution 
baseDist  The base random number generator to take the distribution from. 
References baseDistrib, probCount, and probPerBin.

inlinevirtual 
Gets the next (random) double value in the distribution.
Implements SST::RNG::RandomDistribution.
References baseDistrib, SST::RNG::Random::nextUniform(), and probPerBin.