QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Vasicek::Dynamics Class Reference

Short-rate dynamics in the Vasicek model. More...

#include <ql/models/shortrate/onefactormodels/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_
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Dynamics()

Dynamics ( Real  a,
Real  b,
Real  sigma,
Real  r0 
)

Definition at line 80 of file vasicek.hpp.

Member Function Documentation

◆ variable()

Real variable ( Time  t,
Rate  r 
) const
overridevirtual

Compute state variable from short rate.

Implements OneFactorModel::ShortRateDynamics.

Definition at line 88 of file vasicek.hpp.

◆ shortRate()

Real shortRate ( Time  t,
Real  variable 
) const
overridevirtual

Compute short rate from state variable.

Implements OneFactorModel::ShortRateDynamics.

Definition at line 89 of file vasicek.hpp.

Member Data Documentation

◆ b_

Real b_
private

Definition at line 92 of file vasicek.hpp.