25 #ifndef UQ_RNG_BOOST_H
26 #define UQ_RNG_BOOST_H
28 #include <queso/RngBase.h>
29 #include <boost/random/mersenne_twister.hpp>
88 double betaSample (
double alpha,
double beta)
const;
114 #endif // UQ_RNG_BOOST_H
int seed() const
Sets the seed.
double gammaSample(double a, double b) const
Samples a value from a Gamma distribution. Support: [0,infinity).
double betaSample(double alpha, double beta) const
Samples a value from a Beta distribution. Support: [0,1].
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.
Class for random number generation (base class for either GSL or Boost RNG).
double gaussianSample(double stdDev) const
RngBoost()
Default Constructor: it should not be used.
boost::mt19937 m_rng
Random number generator from class boost::mt19937.