Tausworthe.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_TAUSWORTHE_HPP
2 #define JULIAN_TAUSWORTHE_HPP
3 
5 #include <gsl/gsl_rng.h>
6 
7 namespace julian {
8 
25  class Tausworthe: public UniformRNG {
26  public:
27  Tausworthe();
28  Tausworthe(const Tausworthe&);
30 
31  virtual double getRandom();
32  virtual std::vector<double> getRandoms(int);
33  virtual void setSeed(unsigned int);
34  virtual Tausworthe* clone() const;
35  virtual ~Tausworthe();
36  private:
37  gsl_rng * rnd_;
38  };
39 
40 }
41 
42 
43 
44 #endif /* TAUSWORTHE_HPP */
virtual void setSeed(unsigned int)
sets seed of RNG
Definition: Tausworthe.cpp:64
Class implements Tausworthe RNG.
Definition: Tausworthe.hpp:25
gsl_rng * rnd_
GSL random number generator.
Definition: Tausworthe.hpp:37
Definition: cadHoliday.cpp:3
Tausworthe & operator=(Tausworthe)
Copy assignment operator.
Definition: Tausworthe.cpp:28
virtual double getRandom()
generate one random variable from uniform distribution.
Definition: Tausworthe.cpp:37
virtual Tausworthe * clone() const
Virtual copy constructor.
Definition: Tausworthe.cpp:56
File contains implementation of RNG generating random variables from uniform distribution.
virtual std::vector< double > getRandoms(int)
generate n random variables from uniform distribution.
Definition: Tausworthe.cpp:44
virtual ~Tausworthe()
destructor
Definition: Tausworthe.cpp:72
Class implements interface for uniform number generators.
Definition: uniformRNG.hpp:21
Tausworthe()
Constructor.
Definition: Tausworthe.cpp:10