randomVariable.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_RANDOMVARIABLE_HPP
2 #define JULIAN_RANDOMVARIABLE_HPP
3 
6 #include <utils/smartPointer.hpp>
7 
8 namespace julian {
26  public:
27  RandomVariable(){};
28 
31  virtual double getRandom() = 0;
34  virtual std::vector<double> getRandoms(int) = 0;
37  virtual void setSeed(unsigned int) = 0;
40  virtual ~RandomVariable(){}
43  virtual RandomVariable* clone() const;
44  };
45 
46 }
47 
48 #endif
File contains template of deep-coping smart pointer.
File contains interface of random variables.
virtual void setSeed(unsigned int)=0
Set seeds of pseudo-random generator.
virtual std::vector< double > getRandoms(int)=0
Generates set of pseudo-random variables.
Definition: cadHoliday.cpp:3
Class implements the interface for Random Variables.
Definition: randomVariable.hpp:25
File contains implementation of RNG generating random variables from uniform distribution.
virtual RandomVariable * clone() const
Virtual copy constructor.
virtual double getRandom()=0
Generates pseudo-random variable.
virtual ~RandomVariable()
Destructor.
Definition: randomVariable.hpp:40