customRandomVariable.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_CUSTOMRANDOMVARIABLE_HPP
2 #define JULIAN_CUSTOMRANDOMVARIABLE_HPP
3 
9 #include <utils/smartPointer.hpp>
10 
11 namespace julian {
12 
29  public:
36  double getRandom() override;
37  std::vector<double> getRandoms(int) override;
38  void setSeed(unsigned int) override;
39 
40  CustomRandomVariable* clone() const;
41  private:
44  };
45 
46 }
47 
48 #endif
File contains template of deep-coping smart pointer.
File contains interface of random variables.
void setSeed(unsigned int) override
Changes seed of RNG.
Definition: customRandomVariable.cpp:32
SmartPointer< UniformRNG > urng_
Definition: customRandomVariable.hpp:43
SmartPointer< ProbabilityDistribution > dist_
Definition: customRandomVariable.hpp:42
Class implements Tausworthe RNG.
Definition: Tausworthe.hpp:25
Definition: cadHoliday.cpp:3
Class implements the interface for Random Variables.
Definition: randomVariable.hpp:25
Class implements the custom random variable.
Definition: customRandomVariable.hpp:28
Template of deep-coping smart pointer.
Definition: smartPointer.hpp:14
double getRandom() override
Generates random variable.
Definition: customRandomVariable.cpp:16
CustomRandomVariable()
Default constructor.
Definition: customRandomVariable.hpp:34
File contains implementation of RNG generating random variables from uniform distribution.
File contains implementation of normal distribution.
CustomRandomVariable * clone() const
Virtual copy constructor.
Definition: customRandomVariable.cpp:37
File contains implementation of Tausworthe generator.
Class implements Normal Distribution.
Definition: normalDistribution.hpp:39
std::vector< double > getRandoms(int) override
Generates set of random variable.
Definition: customRandomVariable.cpp:24
File contains definition of RandomVariable.