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

Pricing engine for irregular swaptions. More...

#include <haganirregularswaptionengine.hpp>

+ Inheritance diagram for HaganIrregularSwaptionEngine:
+ Collaboration diagram for HaganIrregularSwaptionEngine:

Classes

class  Basket
 

Public Member Functions

 HaganIrregularSwaptionEngine (Handle< SwaptionVolatilityStructure >, Handle< YieldTermStructure > termStructure=Handle< YieldTermStructure >())
 
void calculate () const override
 
Real HKPrice (Basket &basket, ext::shared_ptr< Exercise > &exercise) const
 
Real LGMPrice (Basket &basket, ext::shared_ptr< Exercise > &exercise) const
 
- Public Member Functions inherited from GenericEngine< IrregularSwaption::arguments, IrregularSwaption::results >
PricingEngine::argumentsgetArguments () const override
 
const PricingEngine::resultsgetResults () const override
 
void reset () override
 
void update () override
 
- Public Member Functions inherited from PricingEngine
 ~PricingEngine () override=default
 
virtual argumentsgetArguments () const =0
 
virtual const resultsgetResults () const =0
 
virtual void reset ()=0
 
virtual void calculate () const =0
 
- Public Member Functions inherited from Observable
 Observable ()
 
 Observable (const Observable &)
 
Observableoperator= (const Observable &)
 
 Observable (Observable &&)=delete
 
Observableoperator= (Observable &&)=delete
 
virtual ~Observable ()=default
 
void notifyObservers ()
 
- 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 ()
 

Private Attributes

Handle< YieldTermStructuretermStructure_
 
Handle< SwaptionVolatilityStructurevolatilityStructure_
 

Additional Inherited Members

- Public Types inherited from Observer
typedef set_type::iterator iterator
 
- Protected Attributes inherited from GenericEngine< IrregularSwaption::arguments, IrregularSwaption::results >
IrregularSwaption::arguments arguments_
 
IrregularSwaption::results results_
 

Detailed Description

Pricing engine for irregular swaptions.

References:

  1. P.S. Hagan: "Methodology for Callable Swaps and Bermudan 'Exercise into Swaptions'"
  2. P.J. Hunt, J.E. Kennedy: "Implied interest rate pricing models", Finance Stochast. 2, 275-293 (1998)

    Warning:
    Currently a spread is not handled correctly; it should be a minor exercise to account for this feature as well;

Definition at line 48 of file haganirregularswaptionengine.hpp.

Constructor & Destructor Documentation

◆ HaganIrregularSwaptionEngine()

HaganIrregularSwaptionEngine ( Handle< SwaptionVolatilityStructure volatilityStructure,
Handle< YieldTermStructure termStructure = Handle<YieldTermStructure>() 
)
explicit

Definition at line 221 of file haganirregularswaptionengine.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ calculate()

void calculate ( ) const
overridevirtual

Implements PricingEngine.

Definition at line 231 of file haganirregularswaptionengine.cpp.

+ Here is the call graph for this function:

◆ HKPrice()

Real HKPrice ( Basket basket,
ext::shared_ptr< Exercise > &  exercise 
) const

Definition at line 334 of file haganirregularswaptionengine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LGMPrice()

Real LGMPrice ( Basket basket,
ext::shared_ptr< Exercise > &  exercise 
) const

Member Data Documentation

◆ termStructure_

Handle<YieldTermStructure> termStructure_
private

Definition at line 92 of file haganirregularswaptionengine.hpp.

◆ volatilityStructure_

Handle<SwaptionVolatilityStructure> volatilityStructure_
private

Definition at line 93 of file haganirregularswaptionengine.hpp.