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));
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition serializer.h:45
Implements a Mersenne-based RNG for use in the SST core or components.
Definition mersenne.h:34
RandomDistribution()
Creates the base (abstract) class of a distribution.
Definition distrib.h:41
Implements the base class for random number generators for the SST core.
Definition rng.h:29