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
void privateResetSeed()
Reset seed.
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 ~RngBase()
Virtual destructor.
Class for random number generation (base class for either GSL or Boost RNG).
virtual double gammaSample(double a, double b) const =0
Samples a value from a Gamma distribution.
virtual void resetSeed(int newSeed)
Resets the seed with value newSeed.
int m_worldRank
Rank of processor.
RngBase()
Default Constructor: it should not be used.
virtual double uniformSample() const =0
Samples a value from a uniform distribution.
virtual double betaSample(double alpha, double beta) const =0
Samples a value from a Beta distribution.