33 : priceSurf_(
std::move(priceSurf)) {
48 "lag difference must be non-negative: " << lagDiff);
69 Real priceStart = 0.0;
91 npv = priceStart + (priceEnd - priceStart) * (effectiveMaturity - dd.first)
CPI::InterpolationType observationInterpolation
ext::shared_ptr< ZeroInflationIndex > index
CPICapFloor::results results_
CPICapFloor::arguments arguments_
Shared handle to an observable.
Handle< CPICapFloorTermPriceSurface > priceSurf_
void calculate() const override
InterpolatingCPICapFloorEngine(Handle< CPICapFloorTermPriceSurface >)
std::pair< iterator, bool > registerWith(const ext::shared_ptr< Observable > &)
cpi inflation cap and floor term price structure.
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
std::pair< Date, Date > inflationPeriod(const Date &d, Frequency frequency)
utility function giving the inflation period for a given date
@ AsIndex
same interpolation as index
@ Flat
flat from previous fixing