23#ifndef quantext_mid_point_index_cds_engine_hpp
24#define quantext_mid_point_index_cds_engine_hpp
28#include <ql/pricingengines/credit/midpointcdsengine.hpp>
37 const Handle<YieldTermStructure>& discountCurve,
38 boost::optional<bool> includeSettlementDateFlows = boost::none);
41 const std::vector<Real>& underlyingRecoveryRate,
42 const Handle<YieldTermStructure>& discountCurve,
43 boost::optional<bool> includeSettlementDateFlows = boost::none);
49 Real
expectedLoss(
const Date& defaultDate,
const Date& d1,
const Date& d2,
const Real notional)
const override;
Real survivalProbability(const Date &d) const override
Handle< DefaultProbabilityTermStructure > probability_
void calculate() const override
const bool useUnderlyingCurves_
const std::vector< Handle< DefaultProbabilityTermStructure > > underlyingProbability_
Real expectedLoss(const Date &defaultDate, const Date &d1, const Date &d2, const Real notional) const override
const std::vector< Real > underlyingRecoveryRate_
Real defaultProbability(const Date &d1, const Date &d2) const override
Index Credit default swap.