quantlib.termstructures.credit.interpolated_hazardrate_curve.InterpolatedHazardRateCurve¶
- class InterpolatedHazardRateCurve(Interpolator interpolator, list dates, vector[Rate] hazard_rates, DayCounter day_counter, Calendar cal=Calendar())¶
Bases:
DefaultProbabilityTermStructure
DefaultProbabilityTermStructure based on interpolation of hazard rates
- Parameters:
interpolator (int {Linear, LogLinear, BackwardFlat}) – can be one of Linear, LogLinear, BackwardFlat
dates (
list
ofDate
) – list of dateshazard_rates (
list
of float) – corresponding list of hazard ratesday_counter (
DayCounter
)cal (
Calendar
)
- __init__(*args, **kwargs)¶
Methods
__init__
(*args, **kwargs)hazard_rate
(self, d, bool extrapolate=False)survival_probability
(self, d, ...)time_from_reference
(self, Date d)Attributes
list of curve data
list of curve dates
day_counter
list of curve hazard rates
jump_dates
jump_times
max_date
reference_date
list of curve times
- data¶
list of curve data
- dates¶
list of curve dates
- hazard_rates¶
list of curve hazard rates
- times¶
list of curve times