cirProcess.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_CIRPROCESS_HPP
2 #define JULIAN_CIRPROCESS_HPP
3 
6 
7 namespace julian {
24  class CirProcess {
25  public:
29 
32  CirProcess(double mrs, double lt, double vol):
33  mrs_(mrs), lt_(lt), vol_(vol){};
34 
35  Path getPath(double, const TimeGrid&, SmartPointer<UniformRNG>& rng) ;
36  Path getPath(double, const TimeGrid&, const std::vector<double>&) const;
37  CirProcess* clone();
38  ~CirProcess(){};
39 
40  private:
41  double mrs_;
42  double lt_;
43  double vol_;
44  };
45 } // namespace julian
46 
47 #endif /* CIRPROCESS_HPP */
double mrs_
mean reversion speed
Definition: cirProcess.hpp:38
CirProcess * clone()
Virtual copy constructor.
Definition: cirProcess.cpp:50
Class implements a TimeGrid object.
Definition: timeGrid.hpp:21
Path is a series of real numbers indexed with time. In general, it is identical with a series of time...
Definition: path.hpp:18
Definition: cadHoliday.cpp:3
CirProcess(double mrs, double lt, double vol)
Constructor.
Definition: cirProcess.hpp:32
Path getPath(double, const TimeGrid &, SmartPointer< UniformRNG > &rng)
generates path
Definition: cirProcess.cpp:15
Template of deep-coping smart pointer.
Definition: smartPointer.hpp:14
double lt_
long-term mean
Definition: cirProcess.hpp:42
File contains implementation of RNG generating random variables from uniform distribution.
double vol_
volatility
Definition: cirProcess.hpp:43
CirProcess()
Default constructor.
Definition: cirProcess.hpp:28
Class is implements Cox–Ingersoll–Ross (CIR) process.
Definition: cirProcess.hpp:24
File contains interface for stochastic processes.