Functions | |
QuantLib::Date | lastAvailableFixing (const QuantLib::ZeroInflationIndex &index, const QuantLib::Date &asof) |
Check if today - availabilityLag is already known, otherwise return the fixingDate of the previous fixing. More... | |
QuantLib::Rate | cpiFixing (const QuantLib::ext::shared_ptr< QuantLib::ZeroInflationIndex > &index, const QuantLib::Date &maturity, const QuantLib::Period &obsLag, bool interpolated) |
Computes a CPI fixing giving an zeroIndex, with interpolation if needed. More... | |
QuantLib::Date | curveBaseDate (const bool baseDateLastKnownFixing, const QuantLib::Date &refDate, const QuantLib::Period obsLagCurve, const QuantLib::Frequency curveFreq, const QuantLib::ext::shared_ptr< QuantLib::ZeroInflationIndex > &index) |
derives the zero inflation curve base date based on the useLastKnownFixing rule More... | |
QuantLib::Date | fixingDate (const QuantLib::Date &d, const QuantLib::Period obsLag, const QuantLib::Frequency freq, bool interpolated) |
QuantLib::Rate | guessCurveBaseRate (const bool baseDateLastKnownFixing, const QuantLib::Date &swapStart, const QuantLib::Date &asof, const QuantLib::Period &swapTenor, const QuantLib::DayCounter &swapZCLegDayCounter, const QuantLib::Period &swapObsLag, const QuantLib::Rate zeroCouponRate, const QuantLib::Period &curveObsLag, const QuantLib::DayCounter &curveDayCounter, const QuantLib::ext::shared_ptr< QuantLib::ZeroInflationIndex > &index, const bool interpolated, const QuantLib::ext::shared_ptr< QuantLib::Seasonality > &seasonality) |
bool | isCPIVolSurfaceLogNormal (const QuantLib::ext::shared_ptr< QuantLib::CPIVolatilitySurface > &surface) |
QuantLib::Date lastAvailableFixing | ( | const QuantLib::ZeroInflationIndex & | index, |
const QuantLib::Date & | asof | ||
) |
Check if today - availabilityLag is already known, otherwise return the fixingDate of the previous fixing.
Definition at line 156 of file inflation.cpp.
QuantLib::Rate cpiFixing | ( | const QuantLib::ext::shared_ptr< QuantLib::ZeroInflationIndex > & | index, |
const QuantLib::Date & | maturity, | ||
const QuantLib::Period & | obsLag, | ||
bool | interpolated | ||
) |
Computes a CPI fixing giving an zeroIndex, with interpolation if needed.
Definition at line 166 of file inflation.cpp.
QuantLib::Date curveBaseDate | ( | const bool | baseDateLastKnownFixing, |
const QuantLib::Date & | refDate, | ||
const QuantLib::Period | obsLagCurve, | ||
const QuantLib::Frequency | curveFreq, | ||
const QuantLib::ext::shared_ptr< QuantLib::ZeroInflationIndex > & | index | ||
) |
derives the zero inflation curve base date based on the useLastKnownFixing rule
Definition at line 172 of file inflation.cpp.
QuantLib::Date fixingDate | ( | const QuantLib::Date & | d, |
const QuantLib::Period | obsLag, | ||
const QuantLib::Frequency | , | ||
bool | interpolated | ||
) |
computes the fixingDate for ZC CPI Swap following the rule for an interpolated index it is d - obsLag but for an interpolated index the fixing date is per definition on the start of the inflation period in which d - obsLag falls
Definition at line 183 of file inflation.cpp.
QuantLib::Rate guessCurveBaseRate | ( | const bool | baseDateLastKnownFixing, |
const QuantLib::Date & | swapStart, | ||
const QuantLib::Date & | asof, | ||
const QuantLib::Period & | swapTenor, | ||
const QuantLib::DayCounter & | swapZCLegDayCounter, | ||
const QuantLib::Period & | swapObsLag, | ||
const QuantLib::Rate | zeroCouponRate, | ||
const QuantLib::Period & | curveObsLag, | ||
const QuantLib::DayCounter & | curveDayCounter, | ||
const QuantLib::ext::shared_ptr< QuantLib::ZeroInflationIndex > & | index, | ||
const bool | interpolated, | ||
const QuantLib::ext::shared_ptr< QuantLib::Seasonality > & | seasonality = nullptr |
||
) |
Computes the base rate for curve construction so that zero inflation rate is constant up to the first pillar Accounts for the acctual accrued inflation between the ZCIIS base date and the curve base date (e.g. last published fixing date) If curve base date and ZCIIS are the same, then the base rate is the ZCIIS rate
Definition at line 191 of file inflation.cpp.
bool isCPIVolSurfaceLogNormal | ( | const QuantLib::ext::shared_ptr< QuantLib::CPIVolatilitySurface > & | surface | ) |
checks if the vols are normal or lognormal if the volsurface is not derived from QuantExt::CPIVolatilitySurface we default to lognormal vols
Definition at line 302 of file inflation.cpp.