SST  14.1.0
StructuralSimulationToolkit
SST::RNG::RandomDistribution Class Referenceabstract

Base class of statistical distributions in SST. More...

#include <distrib.h>

Inheritance diagram for SST::RNG::RandomDistribution:
SST::Core::Serialization::serializable SST::Core::Serialization::serializable_base SST::RNG::ConstantDistribution SST::RNG::DiscreteDistribution SST::RNG::ExponentialDistribution SST::RNG::GaussianDistribution SST::RNG::PoissonDistribution SST::RNG::UniformDistribution

Public Member Functions

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.
 
virtual void serialize_order (SST::Core::Serialization::serializer &UNUSED(ser)) override
 
- Public Member Functions inherited from SST::Core::Serialization::serializable_base
virtual const char * cls_name () const =0
 
virtual void serialize_order (serializer &ser)=0
 
virtual uint32_t cls_id () const =0
 
virtual std::string serialization_name () const =0
 

Additional Inherited Members

- Static Public Attributes inherited from SST::Core::Serialization::serializable
static constexpr uint32_t NullClsId = std::numeric_limits<uint32_t>::max()
 
- Static Public Attributes inherited from SST::Core::Serialization::serializable_base
static constexpr uint32_t NullClsId = std::numeric_limits<uint32_t>::max()
 
- Protected Types inherited from SST::Core::Serialization::serializable_base
enum  cxn_flag_t { ConstructorFlag }
 
- Static Protected Member Functions inherited from SST::Core::Serialization::serializable_base
static void serializable_abort (uint32_t line, const char *file, const char *func, const char *obj)
 

Detailed Description

Base class of statistical distributions in SST.

Member Function Documentation

◆ getNextDouble()

virtual double SST::RNG::RandomDistribution::getNextDouble ( )
pure virtual

Obtains the next double from the distribution.

Returns
The next double in the distribution being sampled

Implemented in SST::RNG::DiscreteDistribution, SST::RNG::UniformDistribution, SST::RNG::GaussianDistribution, SST::RNG::ExponentialDistribution, SST::RNG::PoissonDistribution, and SST::RNG::ConstantDistribution.


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