quantlib.termstructures.credit.piecewise_default_curve.
PiecewiseDefaultCurve¶
- class PiecewiseDefaultCurve(ProbabilityTrait trait, Interpolator interpolator, Natural settlement_days, Calendar calendar, list helpers, DayCounter daycounter, Real accuracy=1e-12)¶
Bases:
DefaultProbabilityTermStructure- Attributes:
calendarCalendar: calendardatalist of curve data
dateslist of curve dates
day_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 calculationtimeslist of curve times
Methods
from_reference_date(cls, ...)hazard_rate(self, d, bool extrapolate=False)Hazard rate
survival_probability(self, d, ...)Survival probability
time_from_reference(self, Date dt)date/time conversion