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

CMS-coupon pricer. More...

#include <conundrumpricer.hpp>

+ Inheritance diagram for AnalyticHaganPricer:
+ Collaboration diagram for AnalyticHaganPricer:

Public Member Functions

 AnalyticHaganPricer (const Handle< SwaptionVolatilityStructure > &swaptionVol, GFunctionFactory::YieldCurveModel modelOfYieldCurve, const Handle< Quote > &meanReversion)
 
- Public Member Functions inherited from HaganPricer
Real swapletPrice () const override=0
 
Rate swapletRate () const override
 
Real capletPrice (Rate effectiveCap) const override
 
Rate capletRate (Rate effectiveCap) const override
 
Real floorletPrice (Rate effectiveFloor) const override
 
Rate floorletRate (Rate effectiveFloor) const override
 
Real meanReversion () const override
 
void setMeanReversion (const Handle< Quote > &meanReversion) override
 
- Public Member Functions inherited from CmsCouponPricer
 CmsCouponPricer (Handle< SwaptionVolatilityStructure > v=Handle< SwaptionVolatilityStructure >())
 
Handle< SwaptionVolatilityStructureswaptionVolatility () const
 
void setSwaptionVolatility (const Handle< SwaptionVolatilityStructure > &v=Handle< SwaptionVolatilityStructure >())
 
- Public Member Functions inherited from FloatingRateCouponPricer
 ~FloatingRateCouponPricer () override=default
 
void update () override
 
- 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 ()
 
- Public Member Functions inherited from MeanRevertingPricer
virtual Real meanReversion () const =0
 
virtual void setMeanReversion (const Handle< Quote > &)=0
 
virtual ~MeanRevertingPricer ()=default
 

Protected Member Functions

Real optionletPrice (Option::Type optionType, Real strike) const override
 
Real swapletPrice () const override
 
- Protected Member Functions inherited from HaganPricer
 HaganPricer (const Handle< SwaptionVolatilityStructure > &swaptionVol, GFunctionFactory::YieldCurveModel modelOfYieldCurve, Handle< Quote > meanReversion)
 
void initialize (const FloatingRateCoupon &coupon) override
 
virtual Real optionletPrice (Option::Type optionType, Real strike) const =0
 

Additional Inherited Members

- Public Types inherited from Observer
typedef set_type::iterator iterator
 
- Protected Attributes inherited from HaganPricer
ext::shared_ptr< YieldTermStructurerateCurve_
 
GFunctionFactory::YieldCurveModel modelOfYieldCurve_
 
ext::shared_ptr< GFunctiongFunction_
 
const CmsCouponcoupon_
 
Date paymentDate_
 
Date fixingDate_
 
Rate swapRateValue_
 
DiscountFactor discount_
 
Real annuity_
 
Real gearing_
 
Spread spread_
 
Real spreadLegValue_
 
Rate cutoffForCaplet_ = 2
 
Rate cutoffForFloorlet_ = 0
 
Handle< QuotemeanReversion_
 
Period swapTenor_
 
ext::shared_ptr< VanillaOptionPricervanillaOptionPricer_
 

Detailed Description

CMS-coupon pricer.

Definition at line 323 of file conundrumpricer.hpp.

Constructor & Destructor Documentation

◆ AnalyticHaganPricer()

AnalyticHaganPricer ( const Handle< SwaptionVolatilityStructure > &  swaptionVol,
GFunctionFactory::YieldCurveModel  modelOfYieldCurve,
const Handle< Quote > &  meanReversion 
)

Definition at line 503 of file conundrumpricer.cpp.

Member Function Documentation

◆ optionletPrice()

Real optionletPrice ( Option::Type  optionType,
Real  strike 
) const
overrideprotectedvirtual

Implements HaganPricer.

Definition at line 511 of file conundrumpricer.cpp.

+ Here is the call graph for this function:

◆ swapletPrice()

Real swapletPrice ( ) const
overrideprotectedvirtual

Implements HaganPricer.

Definition at line 555 of file conundrumpricer.cpp.

+ Here is the call graph for this function: