Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | List of all members
BlackSwaptionEngineDeltaGamma Class Reference

Shifted Lognormal Black-formula swaption engine. More...

#include <qle/pricingengines/blackswaptionenginedeltagamma.hpp>

+ Inheritance diagram for BlackSwaptionEngineDeltaGamma:
+ Collaboration diagram for BlackSwaptionEngineDeltaGamma:

Public Member Functions

 BlackSwaptionEngineDeltaGamma (const Handle< YieldTermStructure > &discountCurve, Volatility vol, const DayCounter &dc=Actual365Fixed(), Real displacement=0.0, const std::vector< Time > &bucketTimesDeltaGamma=std::vector< Time >(), const std::vector< Time > &bucketTimesVegaOpt=std::vector< Time >(), const std::vector< Time > &bucketTimesVegaUnd=std::vector< Time >(), const bool computeDeltaVega=false, const bool computeGamma=false, const bool linearInZero=true)
 
 BlackSwaptionEngineDeltaGamma (const Handle< YieldTermStructure > &discountCurve, const Handle< Quote > &vol, const DayCounter &dc=Actual365Fixed(), Real displacement=0.0, const std::vector< Time > &bucketTimesDeltaGamma=std::vector< Time >(), const std::vector< Time > &bucketTimesVegaOpt=std::vector< Time >(), const std::vector< Time > &bucketTimesVegaUnd=std::vector< Time >(), const bool computeDeltaVega=false, const bool computeGamma=false, const bool linearInZero=true)
 
 BlackSwaptionEngineDeltaGamma (const Handle< YieldTermStructure > &discountCurve, const Handle< SwaptionVolatilityStructure > &vol, const std::vector< Time > &bucketTimesDeltaGamma=std::vector< Time >(), const std::vector< Time > &bucketTimesVegaOpt=std::vector< Time >(), const std::vector< Time > &bucketTimesVegaUnd=std::vector< Time >(), const bool computeDeltaVega=false, const bool computeGamma=false, const bool linearInZero=true)
 
- Public Member Functions inherited from BlackStyleSwaptionEngineDeltaGamma< detail::Black76Spec >
 BlackStyleSwaptionEngineDeltaGamma (const Handle< YieldTermStructure > &discountCurve, Volatility vol, const DayCounter &dc=Actual365Fixed(), Real displacement=0.0, const std::vector< Time > &bucketTimesDeltaGamma=std::vector< Time >(), const std::vector< Time > &bucketTimesVegaOpt=std::vector< Time >(), const std::vector< Time > &bucketTimesVegaUnd=std::vector< Time >(), const bool computeDeltaVega=false, const bool computeGamma=false, const bool linearInZero=true)
 
 BlackStyleSwaptionEngineDeltaGamma (const Handle< YieldTermStructure > &discountCurve, const Handle< Quote > &vol, const DayCounter &dc=Actual365Fixed(), Real displacement=0.0, const std::vector< Time > &bucketTimesDeltaGamma=std::vector< Time >(), const std::vector< Time > &bucketTimesVegaOpt=std::vector< Time >(), const std::vector< Time > &bucketTimesVegaUnd=std::vector< Time >(), const bool computeDeltaVega=false, const bool computeGamma=false, const bool linearInZero=true)
 
 BlackStyleSwaptionEngineDeltaGamma (const Handle< YieldTermStructure > &discountCurve, const Handle< SwaptionVolatilityStructure > &vol, const std::vector< Time > &bucketTimesDeltaGamma=std::vector< Time >(), const std::vector< Time > &bucketTimesVegaOpt=std::vector< Time >(), const std::vector< Time > &bucketTimesVegaUnd=std::vector< Time >(), const bool computeDeltaVega=false, const bool computeGamma=false, const bool linearInZero=true)
 
void calculate () const override
 
Handle< YieldTermStructure > termStructure ()
 
Handle< SwaptionVolatilityStructurevolatility ()
 

Detailed Description

Shifted Lognormal Black-formula swaption engine.

Warning:
The engine assumes that the exercise date equals the start date of the passed swap.

Definition at line 184 of file blackswaptionenginedeltagamma.hpp.

Constructor & Destructor Documentation

◆ BlackSwaptionEngineDeltaGamma() [1/3]

BlackSwaptionEngineDeltaGamma ( const Handle< YieldTermStructure > &  discountCurve,
Volatility  vol,
const DayCounter &  dc = Actual365Fixed(),
Real  displacement = 0.0,
const std::vector< Time > &  bucketTimesDeltaGamma = std::vector<Time>(),
const std::vector< Time > &  bucketTimesVegaOpt = std::vector<Time>(),
const std::vector< Time > &  bucketTimesVegaUnd = std::vector<Time>(),
const bool  computeDeltaVega = false,
const bool  computeGamma = false,
const bool  linearInZero = true 
)

Definition at line 23 of file blackswaptionenginedeltagamma.cpp.

30 : detail::BlackStyleSwaptionEngineDeltaGamma<detail::Black76Spec>(
31 discountCurve, vol, dc, displacement, bucketTimesDeltaGamma, bucketTimesVegaOpt, bucketTimesVegaUnd,
32 computeDeltaVega, computeGamma, linearInZero) {}

◆ BlackSwaptionEngineDeltaGamma() [2/3]

BlackSwaptionEngineDeltaGamma ( const Handle< YieldTermStructure > &  discountCurve,
const Handle< Quote > &  vol,
const DayCounter &  dc = Actual365Fixed(),
Real  displacement = 0.0,
const std::vector< Time > &  bucketTimesDeltaGamma = std::vector<Time>(),
const std::vector< Time > &  bucketTimesVegaOpt = std::vector<Time>(),
const std::vector< Time > &  bucketTimesVegaUnd = std::vector<Time>(),
const bool  computeDeltaVega = false,
const bool  computeGamma = false,
const bool  linearInZero = true 
)

Definition at line 34 of file blackswaptionenginedeltagamma.cpp.

39 : detail::BlackStyleSwaptionEngineDeltaGamma<detail::Black76Spec>(
40 discountCurve, vol, dc, displacement, bucketTimesDeltaGamma, bucketTimesVegaOpt, bucketTimesVegaUnd,
41 computeDeltaVega, computeGamma, linearInZero) {}

◆ BlackSwaptionEngineDeltaGamma() [3/3]

BlackSwaptionEngineDeltaGamma ( const Handle< YieldTermStructure > &  discountCurve,
const Handle< SwaptionVolatilityStructure > &  vol,
const std::vector< Time > &  bucketTimesDeltaGamma = std::vector<Time>(),
const std::vector< Time > &  bucketTimesVegaOpt = std::vector<Time>(),
const std::vector< Time > &  bucketTimesVegaUnd = std::vector<Time>(),
const bool  computeDeltaVega = false,
const bool  computeGamma = false,
const bool  linearInZero = true 
)

Definition at line 43 of file blackswaptionenginedeltagamma.cpp.

50 : detail::BlackStyleSwaptionEngineDeltaGamma<detail::Black76Spec>(discountCurve, vol, bucketTimesDeltaGamma,
51 bucketTimesVegaOpt, bucketTimesVegaUnd,
52 computeDeltaVega, computeGamma, linearInZero) {
53 QL_REQUIRE(vol->volatilityType() == ShiftedLognormal,
54 "BlackSwaptionEngineDeltaGamma requires (shifted) lognormal input "
55 "volatility");
56}