28#ifndef quantlib_default_probability_helpers_hpp
29#define quantlib_default_probability_helpers_hpp
38 class YieldTermStructure;
39 class CreditDefaultSwap;
42 typedef BootstrapHelper<DefaultProbabilityTermStructure>
90 bool settlesAccrual =
true,
91 bool paysAtDefaultTime =
true,
94 bool rebatesAccrual =
true,
108 bool settlesAccrual =
true,
109 bool paysAtDefaultTime =
true,
112 bool rebatesAccrual =
true,
116 ext::shared_ptr<CreditDefaultSwap>
swap()
const {
140 ext::shared_ptr<CreditDefaultSwap>
swap_;
160 bool settlesAccrual =
true,
161 bool paysAtDefaultTime =
true,
164 bool rebatesAccrual =
true,
178 bool settlesAccrual =
true,
179 bool paysAtDefaultTime =
true,
182 bool rebatesAccrual =
true,
205 Natural upfrontSettlementDays = 3,
206 bool settlesAccrual =
true,
207 bool paysAtDefaultTime =
true,
210 bool rebatesAccrual =
true,
225 Natural upfrontSettlementDays = 3,
226 bool settlesAccrual =
true,
227 bool paysAtDefaultTime =
true,
230 bool rebatesAccrual =
true,
base helper class used for bootstrapping
const Handle< Quote > & quote() const
Base class for CDS helpers.
Handle< YieldTermStructure > discountCurve_
RelinkableHandle< DefaultProbabilityTermStructure > probability_
void setTermStructure(DefaultProbabilityTermStructure *) override
ext::shared_ptr< CreditDefaultSwap > swap() const
DateGeneration::Rule rule_
CreditDefaultSwap::PricingModel model_
void initializeDates() override
BusinessDayConvention paymentConvention_
virtual void resetEngine()=0
ext::shared_ptr< CreditDefaultSwap > swap_
Date protectionStart_
protection effective date.
Default probability term structure.
Shared handle to an observable.
Bootstrap helper with date schedule relative to global evaluation date.
Relinkable handle to an observable.
Spread-quoted CDS hazard rate bootstrap helper.
void resetEngine() override
Real impliedQuote() const override
Upfront-quoted CDS hazard rate bootstrap helper.
void resetEngine() override
void initializeDates() override
Real impliedQuote() const override
Natural upfrontSettlementDays_
default-probability term structure
Frequency
Frequency of events.
BusinessDayConvention
Business Day conventions.
unsigned QL_INTEGER Natural
positive integer
QL_INTEGER Integer
integer number
BootstrapHelper< DefaultProbabilityTermStructure > DefaultProbabilityHelper
alias for default-probability bootstrap helpers
RelativeDateBootstrapHelper< DefaultProbabilityTermStructure > RelativeDateDefaultProbabilityHelper