25 #ifndef QUESO_RNGCXX11_H
26 #define QUESO_RNGCXX11_H
28 #include <queso/Defines.h>
30 #ifdef QUESO_HAVE_CXX11
32 #include <queso/RngBase.h>
101 double betaSample(
double alpha,
double beta)
const;
122 #endif // QUESO_HAVE_CXX11
124 #endif // QUESO_RNGCXX11_H
int seed() const
Sets the seed.
double gaussianSample(double stdDev) const
RngCXX11()
Default Constructor: it should not be used.
Class for random number generation (base class for either GSL or Boost RNG).
double gammaSample(double a, double b) const
Samples a value from a Gamma distribution. Support: [0,infinity).
double uniformSample() const
Samples a value from a uniform distribution. Support: [0,1) or [a,b).
void resetSeed(int newSeed)
Resets the seed with value newSeed.
std::mt19937 m_rng
The internal random number generator. Mersenne Twister generator.
double betaSample(double alpha, double beta) const
Samples a value from a Beta distribution. Support: [0,1].