hestonProcess.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_HESTONPROCESS_HPP
2 #define JULIAN_HESTONPROCESS_HPP
3 
5 
6 namespace julian {
7 
31  public:
32  HestonProcess(){};
33 
34 
43  HestonProcess(double drift, double mean_rev, double curr_var, double lt_var, double vov, double corr):
44  drift_(drift), mean_rev_(mean_rev), curr_var_(curr_var), lt_var_(lt_var), vov_(vov), corr_(corr) {};
45  virtual Path getPath(double, const TimeGrid&, SmartPointer<UniformRNG>& rng) const;
46  virtual Path getPath(double, const TimeGrid&, const std::vector<double>& rnds) const;
47  virtual HestonProcess* clone() const;
48  virtual ~HestonProcess(){};
49 
50  private:
51  double drift_;
52  double mean_rev_;
53  double curr_var_ ;
54  double lt_var_;
55  double vov_;
56  double corr_;
57  };
58 } // namespace julian
59 
60 
61 
62 #endif
Class implements a TimeGrid object.
Definition: timeGrid.hpp:21
double vov_
Volatility of Y process.
Definition: hestonProcess.hpp:55
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
virtual HestonProcess * clone() const
Virtual copy constructor.
Definition: hestonProcess.cpp:53
double mean_rev_
Mean reversion speed of Y process.
Definition: hestonProcess.hpp:52
Template of deep-coping smart pointer.
Definition: smartPointer.hpp:14
Class is an abstract type expressing the concept of stochastic process.
Definition: stochasticProcess.hpp:20
double lt_var_
Long term value of Y process.
Definition: hestonProcess.hpp:54
HestonProcess(double drift, double mean_rev, double curr_var, double lt_var, double vov, double corr)
constructor
Definition: hestonProcess.hpp:43
Class is implements Heston process.
Definition: hestonProcess.hpp:30
virtual Path getPath(double, const TimeGrid &, SmartPointer< UniformRNG > &rng) const
Generates path.
Definition: hestonProcess.cpp:16
double curr_var_
Initial value of Y process of Y process.
Definition: hestonProcess.hpp:53
double corr_
Correlation between X process and Y process.
Definition: hestonProcess.hpp:56
File contains interface for stochastic processes.
double drift_
Drift of the X process.
Definition: hestonProcess.hpp:48