quantlib.termstructures.yields.discount_curve.
BackwardFlatInterpolatedDiscountCurve¶
- class BackwardFlatInterpolatedDiscountCurve(list dates, vector[DiscountFactor] dfs, DayCounter day_counter, Calendar cal=Calendar())¶
Bases:
YieldTermStructureYieldTermStructure based on interpolation of discountFactors
- Parameters:
- dates
listofDate list of dates
- dfs: :obj:`list` of float
corresponding list of discount factors
- day_counter: :class:`~quantlib.time.daycounter.DayCounter`
- cal: :class:`~quantlib.time.calendar.Calendar`
- dates
- Attributes:
Methods
discount(self, value, bool extrapolate=False)forward_rate(self, d1, d2, ...)Returns the forward interest rate between two dates or times.
time_from_reference(self, Date dt)zero_rate(self, d, ...)Returns the implied zero-yield rate for the given date.