35#include <ql/time/date.hpp>
37#include <ql/shared_ptr.hpp>
54 const std::string&
key,
58 const vector<Real>& epe,
60 const vector<Date>& dates,
62 const Handle<DefaultProbabilityTermStructure>& dts,
66 const Handle<YieldTermStructure>& yts,
98 Real
cva(
bool shift =
false, Size index = 0);
100 Real
fairCdsSpread(Size term,
bool shift =
false, Size index = 0);
106 Handle<DefaultProbabilityTermStructure>
dts_;
108 Handle<YieldTermStructure>
yts_;
this class holds data associated to scenarios
CVA Spread Sensitivity Calculator.
const vector< Period > shiftTenors()
const vector< Real > & exposureProfile()
const string key()
Inspectors.
Handle< YieldTermStructure > yts_
const vector< Real > hazardRateSensitivities()
const vector< Real > shiftTimes()
Results.
Real cva(bool shift=false, Size index=0)
vector< Real > cdsSpreadSensitivities_
Real survivalProbability(Date d, bool shift, Size index)
vector< Period > shiftTenors_
vector< Real > hazardRateSensitivities_
Handle< DefaultProbabilityTermStructure > dts_
const Handle< DefaultProbabilityTermStructure > & defaultTermStructure()
const vector< Date > & exposureDateGrid()
const Handle< YieldTermStructure > & discountCurve()
Real fairCdsSpread(Size term, bool shift=false, Size index=0)
Fair CDS Spread calculation with and without shifted hazard rates.
const vector< Real > cdsSpreadSensitivities()
vector< Real > shiftTimes_
Collateral Exposure Helper Functions (stored in base currency)
class describing the layout of an npv cube and aggregation scenario data
A cube implementation that stores the cube in memory.