quantlib.termstructures.default_term_structure.
DefaultProbabilityTermStructure¶
- class DefaultProbabilityTermStructure¶
Bases:
TermStructure- Attributes:
calendarCalendar: calendarday_counterDayCounter: day counter- jump_dates
- jump_times
max_dateDate: the latest date for which the curve can return valuesmax_timeTime: the latest time for which the curve can return valuesreference_dateDate: the date at which discount = 1.0 and/or variance = 0.0settlement_daysint: number of settlement days used for reference date calculation
Methods
hazard_rate(self, d, bool extrapolate=False)Hazard rate
survival_probability(self, d, ...)Survival probability
time_from_reference(self, Date dt)date/time conversion