quantlib.termstructures.credit.interpolated_hazardrate_curve.InterpolatedHazardRateCurve.hazard_rate

InterpolatedHazardRateCurve.hazard_rate(self, d, bool extrapolate=False)

Hazard rate

This returns the hazard rate at a given date or time. In the former case, the time is calculated as a fraction of year from the reference date.

Hazard rates are defined with annual frequency and continuous compounding.

Parameters:
dDate or float
extrapolatebool