uniformRNG.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_UNIFORMRNG_HPP
2 #define JULIAN_UNIFORMRNG_HPP
3 
4 #include <vector>
5 
6 namespace julian {
7 
21  class UniformRNG {
22  public:
23 
28  virtual double getRandom() = 0;
29 
30 
35  virtual std::vector<double> getRandoms(int n) = 0;
36 
41  virtual void setSeed(unsigned int) = 0;
42 
47  virtual UniformRNG* clone() const;
48 
51  virtual ~UniformRNG(){};
52  private:
53  };
54 
55 }
56 
57 #endif
virtual double getRandom()=0
generate one random variable from uniform distribution.
virtual ~UniformRNG()
destructor
Definition: uniformRNG.hpp:51
virtual UniformRNG * clone() const
Virtual copy constructor.
Definition: cadHoliday.cpp:3
virtual std::vector< double > getRandoms(int n)=0
generate n random variables from uniform distribution.
virtual void setSeed(unsigned int)=0
sets seed of RNG
Class implements interface for uniform number generators.
Definition: uniformRNG.hpp:21