28 #include <queso/Defines.h>
74 virtual double betaSample (
double alpha,
double beta)
const = 0;
77 virtual double gammaSample (
double a,
double b)
const = 0;
97 #endif // UQ_RNG_BASE_H
int seed() const
Sets the seed.
virtual double gaussianSample(double stdDev) const =0
Samples a value from a Gaussian distribution with standard deviation given by stdDev.
virtual void resetSeed(int newSeed)
Resets the seed with value newSeed.
virtual double gammaSample(double a, double b) const =0
Samples a value from a Gamma distribution.
virtual double betaSample(double alpha, double beta) const =0
Samples a value from a Beta distribution.
Class for random number generation (base class for either GSL or Boost RNG).
void privateResetSeed()
Reset seed.
int m_worldRank
Rank of processor.
virtual ~RngBase()
Virtual destructor.
RngBase()
Default Constructor: it should not be used.
virtual double uniformSample() const =0
Samples a value from a uniform distribution.