28 #include <queso/RngBase.h>
30 #include <queso/Defines.h>
31 #include <gsl/gsl_rng.h>
95 double betaSample (
double alpha,
double beta)
const;
105 const gsl_rng*
rng ()
const;
118 #endif // UQ_RNG_GSL_H
int seed() const
Sets the seed.
void resetSeed(int newSeed)
Resets the seed with value newSeed.
const gsl_rng * rng() const
GSL random number generator.
double uniformSample() const
Samples a value from a uniform distribution. Support: [0,1] or [a,b].
double gammaSample(double a, double b) const
Samples a value from a Gamma distribution. Support: [0,infinity).
gsl_rng * m_rng
GSL random number generator.
Class for random number generation (base class for either GSL or Boost RNG).
double gaussianSample(double stdDev) const
RngGsl()
Default Constructor: it should not be used.
double betaSample(double alpha, double beta) const
Samples a value from a Beta distribution. Support: [0,1].
unsigned long int gsl_rng_default_seed