K-interpolated YoY optionlet volatility. More...
#include <qle/termstructures/kinterpolatedyoyoptionletvolatilitysurface.hpp>
Inheritance diagram for KInterpolatedYoYOptionletVolatilitySurface< Interpolator1D >:
Collaboration diagram for KInterpolatedYoYOptionletVolatilitySurface< Interpolator1D >:Constructor | |
calculate the reference date based on the global evaluation date | |
| ext::shared_ptr< YoYCapFloorTermPriceSurface > | capFloorPrices_ |
| ext::shared_ptr< QuantLib::YoYInflationCapFloorEngine > | yoyInflationCouponPricer_ |
| ext::shared_ptr< YoYOptionletStripper > | yoyOptionletStripper_ |
| Interpolator1D | factory1D_ |
| Real | slope_ |
| bool | lastDateisSet_ |
| Date | lastDate_ |
| Interpolation | tempKinterpolation_ |
| std::pair< std::vector< Rate >, std::vector< Volatility > > | slice_ |
| KInterpolatedYoYOptionletVolatilitySurface (const Natural settlementDays, const Calendar &, const BusinessDayConvention bdc, const DayCounter &dc, const Period &lag, const ext::shared_ptr< YoYCapFloorTermPriceSurface > &capFloorPrices, const ext::shared_ptr< QuantLib::YoYInflationCapFloorEngine > &pricer, const ext::shared_ptr< YoYOptionletStripper > &yoyOptionletStripper, const Real slope, const Interpolator1D &interpolator=Interpolator1D(), VolatilityType volType=ShiftedLognormal, Real displacement=0.0) | |
| virtual Real | minStrike () const override |
| virtual Real | maxStrike () const override |
| virtual Date | maxDate () const override |
| std::pair< std::vector< Rate >, std::vector< Volatility > > | Dslice (const Date &d) const |
| virtual Volatility | volatilityImpl (const Date &d, Rate strike) const |
| virtual Volatility | volatilityImpl (Time length, Rate strike) const override |
| virtual void | performCalculations () const |
| void | updateSlice (const Date &d) const |
K-interpolated YoY optionlet volatility.
The stripper provides curves in the T direction along each K. We don't know whether this is interpolating or fitting in the T direction. Our K direction interpolations are not model fitting.
An alternative design would be a FittedYoYOptionletVolatilitySurface taking a model, e.g. SABR in the interest rate world. This could use the same stripping in the T direction along each K.
Definition at line 60 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
| KInterpolatedYoYOptionletVolatilitySurface | ( | const Natural | settlementDays, |
| const Calendar & | cal, | ||
| const BusinessDayConvention | bdc, | ||
| const DayCounter & | dc, | ||
| const Period & | lag, | ||
| const ext::shared_ptr< YoYCapFloorTermPriceSurface > & | capFloorPrices, | ||
| const ext::shared_ptr< QuantLib::YoYInflationCapFloorEngine > & | pricer, | ||
| const ext::shared_ptr< YoYOptionletStripper > & | yoyOptionletStripper, | ||
| const Real | slope, | ||
| const Interpolator1D & | interpolator = Interpolator1D(), |
||
| VolatilityType | volType = ShiftedLognormal, |
||
| Real | displacement = 0.0 |
||
| ) |
Definition at line 110 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
Here is the call graph for this function:
|
overridevirtual |
Definition at line 144 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
|
overridevirtual |
Definition at line 151 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
|
overridevirtual |
Definition at line 136 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
| std::pair< std::vector< Rate >, std::vector< Volatility > > Dslice | ( | const Date & | d | ) | const |
Definition at line 183 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
|
protectedvirtual |
Definition at line 169 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
|
overrideprotectedvirtual |
Definition at line 191 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
|
protectedvirtual |
Definition at line 158 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
Here is the caller graph for this function:
|
private |
Definition at line 202 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
|
protected |
Definition at line 92 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
|
protected |
Definition at line 93 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
|
protected |
Definition at line 94 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
|
mutableprotected |
Definition at line 96 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
|
mutableprotected |
Definition at line 97 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
|
mutableprotected |
Definition at line 98 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
|
mutableprotected |
Definition at line 99 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
|
mutableprotected |
Definition at line 100 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.
|
mutableprotected |
Definition at line 101 of file kinterpolatedyoyoptionletvolatilitysurface.hpp.