quantlib.termstructures.yields.zero_curve.LinearInterpolatedZeroCurve¶
- class LinearInterpolatedZeroCurve(list dates, vector[Rate] yields, DayCounter day_counter, Calendar cal=Calendar(), Linear i=Linear(), Compounding compounding=Compounding.Continuous, Frequency frequency=Frequency.Annual)¶
Bases:
YieldTermStructure
YieldTermStructure based on interpolation of discountFactors
- Parameters:
dates (
list
ofDate
) – list of datesforwards (
list
of float) – corresponding list of zero ratesday_counter (
DayCounter
)cal (
Calendar
)
- __init__(*args, **kwargs)¶
Methods
__init__
(*args, **kwargs)discount
(self, value, bool extrapolate=False)forward_rate
(self, d1, d2, ...)Returns the forward interest rate between two dates or times.
link_to
(self, YieldTermStructure structure, ...)time_from_reference
(self, Date dt)zero_rate
(self, d, ...)Returns the implied zero-yield rate for the given date.
Attributes
list of curve data
list of curve dates
day_counter
extrapolation
max_date
max_time
nodes
reference_date
settlement_days
list of curve times
zero_rates
- data¶
list of curve data
- dates¶
list of curve dates
- times¶
list of curve times