12 #ifndef SST_CORE_RNG_UNIFORM_H 13 #define SST_CORE_RNG_UNIFORM_H 69 baseDistrib = baseDist;
89 const double nextD = baseDistrib->nextUniform();
90 uint32_t current_bin = 1;
92 while ( nextD > (static_cast<double>(current_bin) *
probPerBin) ) {
96 return static_cast<double>(current_bin - 1);
113 SST_SER(baseDistrib);
115 SST_SER(const_cast<uint32_t&>(
probCount));
150 #endif // SST_CORE_RNG_UNIFORM_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
Implements a Mersenne-based RNG for use in the SST core or components.
Definition: mersenne.h:34
Base class of statistical distributions in SST.
Definition: distrib.h:23