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> 
   92   double   betaSample    (
double alpha, 
double beta) 
const;
 
  115 #endif // UQ_RNG_BOOST_H 
Class for random number generation (base class for either GSL or Boost RNG). 
 
int seed() const 
Sets the seed. 
 
RngBoost()
Default Constructor: it should not be used. 
 
double uniformSample() const 
Samples a value from a uniform distribution. Support: [0,1] or [a,b]. 
 
double betaSample(double alpha, double beta) const 
Samples a value from a Beta distribution. Support: [0,1]. 
 
double gammaSample(double a, double b) const 
Samples a value from a Gamma distribution. Support: [0,infinity). 
 
void resetSeed(int newSeed)
Resets the seed with value newSeed. 
 
double gaussianSample(double stdDev) const 
 
boost::mt19937 m_rng
Random number generator from class boost::mt19937.