28 #include <queso/RngBase.h>
29 #include <gsl/gsl_rng.h>
96 double betaSample (
double alpha,
double beta)
const;
106 const gsl_rng*
rng ()
const;
116 #endif // UQ_RNG_GSL_H
Class for random number generation (base class for either GSL or Boost RNG).
const gsl_rng * rng() const
GSL random number generator.
RngGsl()
Default Constructor: it should not be used.
int seed() const
Sets the seed.
double betaSample(double alpha, double beta) const
Samples a value from a Beta distribution. Support: [0,1].
double gaussianSample(double stdDev) const
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].
gsl_rng * m_rng
GSL random number generator.
void resetSeed(int newSeed)
Resets the seed with value newSeed.
unsigned long int gsl_rng_default_seed