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