QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
PiecewiseTimeDependentHestonModel Class Reference

Piecewise time dependent Heston model. More...

#include <piecewisetimedependenthestonmodel.hpp>

+ Inheritance diagram for PiecewiseTimeDependentHestonModel:
+ Collaboration diagram for PiecewiseTimeDependentHestonModel:

Public Member Functions

 PiecewiseTimeDependentHestonModel (const Handle< YieldTermStructure > &riskFreeRate, const Handle< YieldTermStructure > &dividendYield, const Handle< Quote > &s0, Real v0, const Parameter &theta, const Parameter &kappa, const Parameter &sigma, const Parameter &rho, TimeGrid timeGrid)
 
Real theta (Time t) const
 
Real kappa (Time t) const
 
Real sigma (Time t) const
 
Real rho (Time t) const
 
Real v0 () const
 
Real s0 () const
 
const TimeGridtimeGrid () const
 
const Handle< YieldTermStructure > & dividendYield () const
 
const Handle< YieldTermStructure > & riskFreeRate () const
 
- Public Member Functions inherited from CalibratedModel
 CalibratedModel (Size nArguments)
 
void update () override
 
virtual void calibrate (const std::vector< ext::shared_ptr< CalibrationHelper > > &, OptimizationMethod &method, const EndCriteria &endCriteria, const Constraint &constraint=Constraint(), const std::vector< Real > &weights=std::vector< Real >(), const std::vector< bool > &fixParameters=std::vector< bool >())
 Calibrate to a set of market instruments (usually caps/swaptions) More...
 
Real value (const Array &params, const std::vector< ext::shared_ptr< CalibrationHelper > > &)
 
const ext::shared_ptr< Constraint > & constraint () const
 
EndCriteria::Type endCriteria () const
 Returns end criteria result. More...
 
const ArrayproblemValues () const
 Returns the problem values. More...
 
Array params () const
 Returns array of arguments on which calibration is done. More...
 
virtual void setParams (const Array &params)
 
Integer functionEvaluation () const
 
- Public Member Functions inherited from Observer
 Observer ()=default
 
 Observer (const Observer &)
 
Observeroperator= (const Observer &)
 
virtual ~Observer ()
 
std::pair< iterator, boolregisterWith (const ext::shared_ptr< Observable > &)
 
void registerWithObservables (const ext::shared_ptr< Observer > &)
 
Size unregisterWith (const ext::shared_ptr< Observable > &)
 
void unregisterWithAll ()
 
virtual void update ()=0
 
virtual void deepUpdate ()
 
- Public Member Functions inherited from Observable
 Observable ()
 
 Observable (const Observable &)
 
Observableoperator= (const Observable &)
 
 Observable (Observable &&)=delete
 
Observableoperator= (Observable &&)=delete
 
virtual ~Observable ()=default
 
void notifyObservers ()
 

Protected Attributes

const Handle< Quotes0_
 
const Handle< YieldTermStructureriskFreeRate_
 
const Handle< YieldTermStructuredividendYield_
 
const TimeGrid timeGrid_
 
- Protected Attributes inherited from CalibratedModel
std::vector< Parameterarguments_
 
ext::shared_ptr< Constraintconstraint_
 
EndCriteria::Type shortRateEndCriteria_ = EndCriteria::None
 
Array problemValues_
 
Integer functionEvaluation_
 

Additional Inherited Members

- Public Types inherited from Observer
typedef set_type::iterator iterator
 
- Protected Member Functions inherited from CalibratedModel
virtual void generateArguments ()
 

Detailed Description

Piecewise time dependent Heston model.

References:

Heston, Steven L., 1993. A Closed-Form Solution for Options with Stochastic Volatility with Applications to Bond and Currency Options. The review of Financial Studies, Volume 6, Issue 2, 327-343.

A. Elices, Models with time-dependent parameters using transform methods: application to Heston’s model, http://arxiv.org/pdf/0708.2020

Definition at line 44 of file piecewisetimedependenthestonmodel.hpp.

Constructor & Destructor Documentation

◆ PiecewiseTimeDependentHestonModel()

PiecewiseTimeDependentHestonModel ( const Handle< YieldTermStructure > &  riskFreeRate,
const Handle< YieldTermStructure > &  dividendYield,
const Handle< Quote > &  s0,
Real  v0,
const Parameter theta,
const Parameter kappa,
const Parameter sigma,
const Parameter rho,
TimeGrid  timeGrid 
)

Definition at line 26 of file piecewisetimedependenthestonmodel.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ theta()

Real theta ( Time  t) const

Definition at line 57 of file piecewisetimedependenthestonmodel.hpp.

◆ kappa()

Real kappa ( Time  t) const

Definition at line 59 of file piecewisetimedependenthestonmodel.hpp.

◆ sigma()

Real sigma ( Time  t) const

Definition at line 61 of file piecewisetimedependenthestonmodel.hpp.

◆ rho()

Real rho ( Time  t) const

Definition at line 63 of file piecewisetimedependenthestonmodel.hpp.

◆ v0()

Real v0 ( ) const

Definition at line 65 of file piecewisetimedependenthestonmodel.hpp.

+ Here is the caller graph for this function:

◆ s0()

Real s0 ( ) const

Definition at line 67 of file piecewisetimedependenthestonmodel.hpp.

+ Here is the caller graph for this function:

◆ timeGrid()

const TimeGrid & timeGrid ( ) const

Definition at line 50 of file piecewisetimedependenthestonmodel.cpp.

◆ dividendYield()

const Handle< YieldTermStructure > & dividendYield ( ) const

Definition at line 55 of file piecewisetimedependenthestonmodel.cpp.

+ Here is the caller graph for this function:

◆ riskFreeRate()

const Handle< YieldTermStructure > & riskFreeRate ( ) const

Definition at line 60 of file piecewisetimedependenthestonmodel.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ s0_

const Handle<Quote> s0_
protected

Definition at line 75 of file piecewisetimedependenthestonmodel.hpp.

◆ riskFreeRate_

const Handle<YieldTermStructure> riskFreeRate_
protected

Definition at line 76 of file piecewisetimedependenthestonmodel.hpp.

◆ dividendYield_

const Handle<YieldTermStructure> dividendYield_
protected

Definition at line 77 of file piecewisetimedependenthestonmodel.hpp.

◆ timeGrid_

const TimeGrid timeGrid_
protected

Definition at line 78 of file piecewisetimedependenthestonmodel.hpp.