quantlib.termstructures.default_term_structure.DefaultProbabilityTermStructure.hazard_rate¶
- DefaultProbabilityTermStructure.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:
- d
Dateor float - extrapolatebool
- d