julian::ArithmeticBrownianMotion Class Reference
Class is implements arithmetic Brownian motion. More...
#include <arithmeticBrownianMotion.hpp>
Inheritance diagram for julian::ArithmeticBrownianMotion:
Public Member Functions | |
ArithmeticBrownianMotion (double drift, double volatility) | |
constructor More... | |
Path | getPath (double, const TimeGrid &, SmartPointer< UniformRNG > &) const |
Generates path. More... | |
Path | getPath (double, const TimeGrid &, const std::vector< double > &) const |
generates path More... | |
virtual ArithmeticBrownianMotion * | clone () const |
Virtual copy constructor. More... | |
void | setDrift (double) |
sets drift More... | |
void | setVolatility (double) |
sets volatility More... | |
Public Member Functions inherited from julian::StochasticProcess | |
StochasticProcess () | |
Constructor. More... | |
virtual | ~StochasticProcess () |
Destructor. More... | |
Private Attributes | |
double | drift_ |
Drift of the Arithmetic Brownian Motion. More... | |
double | volatility_ |
Volatility of the Arithmetic Brownian Motion. More... | |
Detailed Description
Class is implements arithmetic Brownian motion.
Arithmetic Brownian Motion (ABM) is a stochastic process governed by following SDE:
where:
- is drift
- is volatility
- is Wiener Process
Constructor & Destructor Documentation
julian::ArithmeticBrownianMotion::ArithmeticBrownianMotion | ( | double | drift, |
double | volatility | ||
) |
constructor
Member Function Documentation
|
virtual |
Virtual copy constructor.
Implements julian::StochasticProcess.
|
virtual |
Generates path.
- Parameters
-
x0 Value of the process for t = 0; tg points in time for which the value of process is generated rng random number generator that will be used to generate stochastic process
- Returns
- path representing time series
Implements julian::StochasticProcess.
|
virtual |
generates path
- Parameters
-
x0 Value of the process for t = 0; tg points in time for which the value of process is generated rnds random number that will be used to generate the path
- Returns
- path representing time series
Implements julian::StochasticProcess.
void julian::ArithmeticBrownianMotion::setDrift | ( | double | input | ) |
sets drift
void julian::ArithmeticBrownianMotion::setVolatility | ( | double | input | ) |
sets volatility
Member Data Documentation
|
private |
Drift of the Arithmetic Brownian Motion.
|
private |
Volatility of the Arithmetic Brownian Motion.
The documentation for this class was generated from the following files:
- C:/Unix/home/OEM/jULIAN/src/mathematics/stochasticProcesses/arithmeticBrownianMotion.hpp
- C:/Unix/home/OEM/jULIAN/src/mathematics/stochasticProcesses/arithmeticBrownianMotion.cpp