#include <qle/termstructures/spreadedcpivolatilitysurface.hpp>
Public Member Functions | |
SpreadedCPIVolatilitySurface (const Handle< QuantExt::CPIVolatilitySurface > &baseVol, const std::vector< Date > &optionDates, const std::vector< Real > &strikes, const std::vector< std::vector< Handle< Quote > > > &volSpreads) | |
Rate | minStrike () const override |
Rate | maxStrike () const override |
Date | maxDate () const override |
Time | maxTime () const override |
const Date & | referenceDate () const override |
void | update () override |
void | deepUpdate () override |
QuantLib::Real | atmStrike (const QuantLib::Date &maturity, const QuantLib::Period &obsLag=QuantLib::Period(-1, QuantLib::Days)) const override |
Public Member Functions inherited from CPIVolatilitySurface | |
CPIVolatilitySurface (QuantLib::Natural settlementDays, const QuantLib::Calendar &, QuantLib::BusinessDayConvention bdc, const QuantLib::DayCounter &dc, const QuantLib::Period &observationLag, QuantLib::Frequency frequency, bool indexIsInterpolated, const QuantLib::Date &capFloorStartDate=QuantLib::Date(), QuantLib::VolatilityType volType=QuantLib::ShiftedLognormal, double displacement=0.0) | |
QuantLib::Date | optionDateFromTenor (const QuantLib::Period &tenor) const override |
Computes the expiry date from the capFloorStartDate() More... | |
QuantLib::Date | baseDate () const override |
base date will be in the past More... | |
QuantLib::VolatilityType | volatilityType () const |
Returns the volatility type. More... | |
double | displacement () const |
Returns the displacement for lognormal volatilities. More... | |
bool | isLogNormal () const |
QuantLib::Volatility | volatility (const QuantLib::Date &maturityDate, QuantLib::Rate strike, const QuantLib::Period &obsLag=QuantLib::Period(-1, QuantLib::Days), bool extrapolate=false) const override |
virtual QuantLib::Real | atmStrike (const QuantLib::Date &maturity, const QuantLib::Period &obsLag=QuantLib::Period(-1, QuantLib::Days)) const =0 |
QuantLib::Date | capFloorStartDate () const |
Protected Member Functions | |
Volatility | volatilityImpl (Time length, Rate strike) const override |
void | performCalculations () const override |
Protected Member Functions inherited from CPIVolatilitySurface | |
virtual double | fixingTime (const QuantLib::Date &maturityDate) const |
Computes the expiry time from the capFloorStartDate() More... | |
Private Attributes | |
Handle< QuantExt::CPIVolatilitySurface > | baseVol_ |
std::vector< Date > | optionDates_ |
std::vector< Real > | strikes_ |
std::vector< std::vector< Handle< Quote > > > | volSpreads_ |
std::vector< Real > | optionTimes_ |
Matrix | volSpreadValues_ |
Interpolation2D | volSpreadInterpolation_ |
Additional Inherited Members | |
Protected Attributes inherited from CPIVolatilitySurface | |
QuantLib::VolatilityType | volType_ |
double | displacement_ |
Definition at line 36 of file spreadedcpivolatilitysurface.hpp.
SpreadedCPIVolatilitySurface | ( | const Handle< QuantExt::CPIVolatilitySurface > & | baseVol, |
const std::vector< Date > & | optionDates, | ||
const std::vector< Real > & | strikes, | ||
const std::vector< std::vector< Handle< Quote > > > & | volSpreads | ||
) |
Definition at line 28 of file spreadedcpivolatilitysurface.cpp.
|
override |
Definition at line 48 of file spreadedcpivolatilitysurface.cpp.
|
override |
Definition at line 49 of file spreadedcpivolatilitysurface.cpp.
|
override |
Definition at line 45 of file spreadedcpivolatilitysurface.cpp.
|
override |
Definition at line 46 of file spreadedcpivolatilitysurface.cpp.
|
override |
Definition at line 47 of file spreadedcpivolatilitysurface.cpp.
|
override |
Definition at line 70 of file spreadedcpivolatilitysurface.cpp.
|
override |
Definition at line 75 of file spreadedcpivolatilitysurface.cpp.
|
overridevirtual |
Implements CPIVolatilitySurface.
Definition at line 80 of file spreadedcpivolatilitysurface.cpp.
|
overrideprotected |
Definition at line 51 of file spreadedcpivolatilitysurface.cpp.
|
overrideprotected |
Definition at line 56 of file spreadedcpivolatilitysurface.cpp.
|
private |
Definition at line 58 of file spreadedcpivolatilitysurface.hpp.
|
private |
Definition at line 59 of file spreadedcpivolatilitysurface.hpp.
|
private |
Definition at line 60 of file spreadedcpivolatilitysurface.hpp.
|
private |
Definition at line 61 of file spreadedcpivolatilitysurface.hpp.
|
mutableprivate |
Definition at line 63 of file spreadedcpivolatilitysurface.hpp.
|
mutableprivate |
Definition at line 64 of file spreadedcpivolatilitysurface.hpp.
|
mutableprivate |
Definition at line 65 of file spreadedcpivolatilitysurface.hpp.