Wrapper class for a SwaptionVolatilityCube that easily and efficiently exposes ATM vols. More...
#include <qle/termstructures/swaptionvolcubewithatm.hpp>
Public Member Functions | |
SwaptionVolCubeWithATM (const QuantLib::ext::shared_ptr< SwaptionVolatilityCube > &cube) | |
TermStructure interface | |
DayCounter | dayCounter () const override |
Date | maxDate () const override |
Time | maxTime () const override |
const Date & | referenceDate () const override |
Calendar | calendar () const override |
Natural | settlementDays () const override |
VolatilityTermStructure interface | |
Rate | minStrike () const override |
Rate | maxStrike () const override |
SwaptionVolatilityStructure interface | |
QuantLib::ext::shared_ptr< SwaptionVolatilityCube > | cube_ |
const Period & | maxSwapTenor () const override |
VolatilityType | volatilityType () const override |
QuantLib::ext::shared_ptr< SwaptionVolatilityCube > | cube () const |
QuantLib::ext::shared_ptr< SmileSection > | smileSectionImpl (Time optionTime, Time swapLength) const override |
Volatility | volatilityImpl (Time optionTime, Time swapLength, Rate strike) const override |
Real | shiftImpl (Time optionTime, Time swapLength) const override |
Wrapper class for a SwaptionVolatilityCube that easily and efficiently exposes ATM vols.
This class implements SwaptionVolatilityStructure and takes a cube as an input. If asked for a volatility with strike=Null<Real>() it will return the ATM vol by asking the ATM surface directly. If asked for any other strike it will pass it on to the cube.
There is no calculation of ATM in this class.
Definition at line 43 of file swaptionvolcubewithatm.hpp.
SwaptionVolCubeWithATM | ( | const QuantLib::ext::shared_ptr< SwaptionVolatilityCube > & | cube | ) |
Constructor. This is a floating term structure (settlement days is zero) to match QuantLib::SwaptionVolatilityCube
Definition at line 47 of file swaptionvolcubewithatm.hpp.
|
override |
Definition at line 56 of file swaptionvolcubewithatm.hpp.
|
override |
Definition at line 57 of file swaptionvolcubewithatm.hpp.
|
override |
Definition at line 58 of file swaptionvolcubewithatm.hpp.
|
override |
Definition at line 59 of file swaptionvolcubewithatm.hpp.
|
override |
Definition at line 60 of file swaptionvolcubewithatm.hpp.
|
override |
Definition at line 61 of file swaptionvolcubewithatm.hpp.
|
override |
Definition at line 64 of file swaptionvolcubewithatm.hpp.
|
override |
Definition at line 65 of file swaptionvolcubewithatm.hpp.
|
override |
Definition at line 69 of file swaptionvolcubewithatm.hpp.
|
override |
Definition at line 70 of file swaptionvolcubewithatm.hpp.
QuantLib::ext::shared_ptr< SwaptionVolatilityCube > cube | ( | ) | const |
Definition at line 73 of file swaptionvolcubewithatm.hpp.
|
overrideprotected |
Definition at line 77 of file swaptionvolcubewithatm.hpp.
|
overrideprotected |
Definition at line 82 of file swaptionvolcubewithatm.hpp.
|
overrideprotected |
Definition at line 90 of file swaptionvolcubewithatm.hpp.
|
private |
Definition at line 93 of file swaptionvolcubewithatm.hpp.