quantlib.termstructures.credit.flat_hazard_rate.FlatHazardRate.from_reference_date

classmethod FlatHazardRate.from_reference_date(cls, Date reference_date, hazard_rate, DayCounter day_counter)

Alternative constructor for FlatHazardRate

Parameters:
reference_dateDate

reference date for the curve

hazard_rate: float or :class:`~quantlib.quote.Quote`

the flat hazard rate

day_counter: :class:`~quantlib.time.daycounter.DayCounter`

DayCounter for the curve