24#ifndef quantext_hazard_spreaded__defaulttermstructure_hpp
25#define quantext_hazard_spreaded__defaulttermstructure_hpp
27#include <ql/quote.hpp>
28#include <ql/termstructures/credit/hazardratestructure.hpp>
42 const Handle<Quote>& spread);
46 virtual DayCounter
dayCounter()
const override;
47 virtual Date
maxDate()
const override;
48 virtual Time
maxTime()
const override;
50 virtual Calendar
calendar()
const override;
64 Handle<DefaultProbabilityTermStructure>
source_;
75 return source_->survivalProbability(t) * std::exp(-
spread_->value() * t);
Hazard Spreaded Default Term Structure.
virtual Calendar calendar() const override
virtual const Date & referenceDate() const override
Rate hazardRateImpl(Time) const override
virtual Natural settlementDays() const override
virtual DayCounter dayCounter() const override
Probability survivalProbabilityImpl(Time) const override
virtual Date maxDate() const override
virtual Time maxTime() const override
Handle< DefaultProbabilityTermStructure > source_