25 #ifndef UQ_RNG_BOOST_H
26 #define UQ_RNG_BOOST_H
28 #include <queso/RngBase.h>
29 #include <boost/random.hpp>
30 #include <boost/math/distributions.hpp>
89 double betaSample (
double alpha,
double beta)
const;
115 #endif // UQ_RNG_BOOST_H
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 gaussianSample(double stdDev) const
int seed() const
Sets the seed.
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).
RngBoost()
Default Constructor: it should not be used.
boost::mt19937 m_rng
Random number generator from class boost::mt19937.