quantlib.termstructures.credit.flat_hazard_rate.FlatHazardRate.hazard_rate¶
- FlatHazardRate.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