QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
|
Base class describing the short-rate dynamics. More...
#include <ql/models/shortrate/onefactormodel.hpp>
Public Member Functions | |
ShortRateDynamics (ext::shared_ptr< StochasticProcess1D > process) | |
virtual | ~ShortRateDynamics ()=default |
virtual Real | variable (Time t, Rate r) const =0 |
Compute state variable from short rate. More... | |
virtual Rate | shortRate (Time t, Real variable) const =0 |
Compute short rate from state variable. More... | |
const ext::shared_ptr< StochasticProcess1D > & | process () |
Returns the risk-neutral dynamics of the state variable. More... | |
Private Attributes | |
ext::shared_ptr< StochasticProcess1D > | process_ |
Base class describing the short-rate dynamics.
Definition at line 54 of file onefactormodel.hpp.
|
explicit |
Definition at line 56 of file onefactormodel.hpp.
|
virtualdefault |
Compute state variable from short rate.
Implemented in BlackKarasinski::Dynamics, ExtendedCoxIngersollRoss::Dynamics, HullWhite::Dynamics, CoxIngersollRoss::Dynamics, and Vasicek::Dynamics.
Compute short rate from state variable.
Implemented in BlackKarasinski::Dynamics, HullWhite::Dynamics, ExtendedCoxIngersollRoss::Dynamics, Vasicek::Dynamics, and CoxIngersollRoss::Dynamics.
const ext::shared_ptr< StochasticProcess1D > & process | ( | ) |
Returns the risk-neutral dynamics of the state variable.
Definition at line 67 of file onefactormodel.hpp.
|
private |
Definition at line 71 of file onefactormodel.hpp.