quantlib.termstructures.inflation.piecewise_zero_inflation_curve.
PiecewiseZeroInflationCurve¶
- class PiecewiseZeroInflationCurve(Interpolator interpolator, Date reference_date, Date base_date, Frequency frequency, DayCounter day_counter, list instruments, Seasonality seasonality=Seasonality(), Real accuracy=1e-12)¶
Bases:
InterpolatedZeroInflationCurve- Attributes:
- base_date
- base_rate
calendarCalendar: calendarday_counterDayCounter: day countermax_dateDate: the latest date for which the curve can return valuesmax_timeTime: the latest time for which the curve can return valuesreference_dateDate: the date at which discount = 1.0 and/or variance = 0.0settlement_daysint: number of settlement days used for reference date calculation
Methods
data(self)time_from_reference(self, Date dt)date/time conversion
zero_rate(self, d, bool extrapolate=False)