19#include <ql/termstructures/inflationtermstructure.hpp>
26 QuantLib::BusinessDayConvention bdc,
const QuantLib::DayCounter& dc,
27 const QuantLib::Period& observationLag, QuantLib::Frequency frequency,
28 bool indexIsInterpolated,
const QuantLib::Date& startDate,
29 QuantLib::VolatilityType volType,
double displacement)
31 volType_(volType), displacement_(displacement), capFloorStartDate_(startDate) {}
35 return referenceDate();
50 if (indexIsInterpolated()) {
53 return QuantLib::inflationPeriod(
capFloorStartDate() - observationLag(), frequency()).first;
62 const QuantLib::Period& obsLag,
bool extrapolate)
const {
63 if (strike == QuantLib::Null<QuantLib::Real>()) {
66 return QuantLib::CPIVolatilitySurface::volatility(maturityDate, strike, obsLag, extrapolate);
QuantLib::Date capFloorStartDate_
QuantLib::Date baseDate() const override
base date will be in the past
virtual QuantLib::Real atmStrike(const QuantLib::Date &maturity, const QuantLib::Period &obsLag=QuantLib::Period(-1, QuantLib::Days)) const =0
QuantLib::Date capFloorStartDate() const
virtual double fixingTime(const QuantLib::Date &maturityDate) const
Computes the expiry time from the capFloorStartDate()
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::Volatility volatility(const QuantLib::Date &maturityDate, QuantLib::Rate strike, const QuantLib::Period &obsLag=QuantLib::Period(-1, QuantLib::Days), bool extrapolate=false) const override
QuantLib::Date optionDateFromTenor(const QuantLib::Period &tenor) const override
Computes the expiry date from the capFloorStartDate()
interpolated correlation term structure
some inflation related utilities.
QuantLib::Date fixingDate(const QuantLib::Date &d, const QuantLib::Period obsLag, const QuantLib::Frequency freq, bool interpolated)