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

Normal Bachelier-formula swaption engine. More...

#include <qle/pricingengines/blackswaptionenginedeltagamma.hpp>

+ Inheritance diagram for BachelierSwaptionEngineDeltaGamma:
+ Collaboration diagram for BachelierSwaptionEngineDeltaGamma:

Public Member Functions

 BachelierSwaptionEngineDeltaGamma (const Handle< YieldTermStructure > &discountCurve, Volatility vol, const DayCounter &dc=Actual365Fixed(), 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)
 
 BachelierSwaptionEngineDeltaGamma (const Handle< YieldTermStructure > &discountCurve, const Handle< Quote > &vol, const DayCounter &dc=Actual365Fixed(), 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)
 
 BachelierSwaptionEngineDeltaGamma (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::BachelierSpec >
 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

Normal Bachelier-formula swaption engine.

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

Definition at line 216 of file blackswaptionenginedeltagamma.hpp.

Constructor & Destructor Documentation

◆ BachelierSwaptionEngineDeltaGamma() [1/3]

BachelierSwaptionEngineDeltaGamma ( const Handle< YieldTermStructure > &  discountCurve,
Volatility  vol,
const DayCounter &  dc = Actual365Fixed(),
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 58 of file blackswaptionenginedeltagamma.cpp.

65 : detail::BlackStyleSwaptionEngineDeltaGamma<detail::BachelierSpec>(
66 discountCurve, vol, dc, 0.0, bucketTimesDeltaGamma, bucketTimesVegaOpt, bucketTimesVegaUnd, computeDeltaVega,
67 computeGamma, linearInZero) {}

◆ BachelierSwaptionEngineDeltaGamma() [2/3]

BachelierSwaptionEngineDeltaGamma ( const Handle< YieldTermStructure > &  discountCurve,
const Handle< Quote > &  vol,
const DayCounter &  dc = Actual365Fixed(),
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 69 of file blackswaptionenginedeltagamma.cpp.

76 : detail::BlackStyleSwaptionEngineDeltaGamma<detail::BachelierSpec>(
77 discountCurve, vol, dc, 0.0, bucketTimesDeltaGamma, bucketTimesVegaOpt, bucketTimesVegaUnd, computeDeltaVega,
78 computeGamma, linearInZero) {}

◆ BachelierSwaptionEngineDeltaGamma() [3/3]

BachelierSwaptionEngineDeltaGamma ( 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 80 of file blackswaptionenginedeltagamma.cpp.

87 : detail::BlackStyleSwaptionEngineDeltaGamma<detail::BachelierSpec>(discountCurve, vol, bucketTimesDeltaGamma,
88 bucketTimesVegaOpt, bucketTimesVegaUnd,
89 computeDeltaVega, computeGamma, linearInZero) {
90 QL_REQUIRE(vol->volatilityType() == Normal, "BachelierSwaptionEngineDeltaGamma requires normal input volatility");
91}