QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Dynamics of the short-rate under the Cox-Ingersoll-Ross model More...
#include <coxingersollross.hpp>
Public Member Functions | |
Dynamics (Real theta, Real k, Real sigma, Real x0) | |
Real | variable (Time, Rate r) const override |
Compute state variable from short rate. More... | |
Real | shortRate (Time, Real y) const override |
Compute short rate from state variable. More... | |
Public Member Functions inherited from OneFactorModel::ShortRateDynamics | |
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... | |
Dynamics of the short-rate under the Cox-Ingersoll-Ross model
The short-rate is simulated directly using the Quadratic Exponential discretization scheme as described in Leif Andersen, Efficient Simulation of the Heston Stochastic Volatility Model.
Definition at line 86 of file coxingersollross.hpp.
Definition at line 89 of file coxingersollross.hpp.
Compute state variable from short rate.
Implements OneFactorModel::ShortRateDynamics.
Reimplemented in ExtendedCoxIngersollRoss::Dynamics.
Definition at line 96 of file coxingersollross.hpp.
Compute short rate from state variable.
Implements OneFactorModel::ShortRateDynamics.
Reimplemented in ExtendedCoxIngersollRoss::Dynamics.
Definition at line 97 of file coxingersollross.hpp.