|
QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
|
Short-rate dynamics in the Vasicek model. More...
#include <vasicek.hpp>
Inheritance diagram for Vasicek::Dynamics:
Collaboration diagram for Vasicek::Dynamics:Public Member Functions | |
| Dynamics (Real a, Real b, Real sigma, Real r0) | |
| Real | variable (Time, Rate r) const override |
| Compute state variable from short rate. More... | |
| Real | shortRate (Time, Real x) 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... | |
Private Attributes | |
| Real | b_ |
Short-rate dynamics in the Vasicek model.
The short-rate follows an Ornstein-Uhlenbeck process with mean \( b \).
Definition at line 78 of file vasicek.hpp.
Compute state variable from short rate.
Implements OneFactorModel::ShortRateDynamics.
Definition at line 88 of file vasicek.hpp.
Compute short rate from state variable.
Implements OneFactorModel::ShortRateDynamics.
Definition at line 89 of file vasicek.hpp.
|
private |
Definition at line 92 of file vasicek.hpp.