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
OneFactorModel::ShortRateDynamics Class Referenceabstract

Base class describing the short-rate dynamics. More...

#include <ql/models/shortrate/onefactormodel.hpp>

+ Inheritance diagram for OneFactorModel::ShortRateDynamics:
+ Collaboration diagram for OneFactorModel::ShortRateDynamics:

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< StochasticProcess1Dprocess_
 

Detailed Description

Base class describing the short-rate dynamics.

Definition at line 54 of file onefactormodel.hpp.

Constructor & Destructor Documentation

◆ ShortRateDynamics()

ShortRateDynamics ( ext::shared_ptr< StochasticProcess1D process)
explicit

Definition at line 56 of file onefactormodel.hpp.

◆ ~ShortRateDynamics()

virtual ~ShortRateDynamics ( )
virtualdefault

Member Function Documentation

◆ variable()

virtual Real variable ( Time  t,
Rate  r 
) const
pure virtual

◆ shortRate()

virtual Rate shortRate ( Time  t,
Real  variable 
) const
pure virtual

◆ process()

const ext::shared_ptr< StochasticProcess1D > & process ( )

Returns the risk-neutral dynamics of the state variable.

Definition at line 67 of file onefactormodel.hpp.

Member Data Documentation

◆ process_

ext::shared_ptr<StochasticProcess1D> process_
private

Definition at line 71 of file onefactormodel.hpp.