arithmeticBrownianMotion.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_ARITHEMTICBROWNIANMOTION_HPP
2 #define JULIAN_ARITHEMTICBROWNIANMOTION_HPP
3 
5 
6 namespace julian {
23  public:
24  ArithmeticBrownianMotion(double drift, double volatility);
25  Path getPath(double,const TimeGrid&,SmartPointer<UniformRNG>&) const;
26  Path getPath(double,const TimeGrid&,const std::vector<double>&) const;
27  virtual ArithmeticBrownianMotion* clone() const;
28  virtual ~ArithmeticBrownianMotion(){};
29 
30  void setDrift(double);
31  void setVolatility(double);
32 
33  private:
34  double drift_;
35  double volatility_;
37  };
38 } // namespace julian
39 #endif
Class implements a TimeGrid object.
Definition: timeGrid.hpp:21
ArithmeticBrownianMotion(double drift, double volatility)
constructor
Definition: arithmeticBrownianMotion.cpp:9
Path is a series of real numbers indexed with time. In general, it is identical with a series of time...
Definition: path.hpp:18
double drift_
Drift of the Arithmetic Brownian Motion.
Definition: arithmeticBrownianMotion.hpp:34
Definition: cadHoliday.cpp:3
Class is implements arithmetic Brownian motion.
Definition: arithmeticBrownianMotion.hpp:22
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
virtual ArithmeticBrownianMotion * clone() const
Virtual copy constructor.
Definition: arithmeticBrownianMotion.cpp:50
void setVolatility(double)
sets volatility
Definition: arithmeticBrownianMotion.cpp:62
double volatility_
Volatility of the Arithmetic Brownian Motion.
Definition: arithmeticBrownianMotion.hpp:35
Path getPath(double, const TimeGrid &, SmartPointer< UniformRNG > &) const
Generates path.
Definition: arithmeticBrownianMotion.cpp:22
File contains interface for stochastic processes.
void setDrift(double)
sets drift
Definition: arithmeticBrownianMotion.cpp:56