43 const std::string& name,
47 const QuantLib::ext::shared_ptr<SimMarket>& simMarket,
49 QuantLib::ext::shared_ptr<NPVCube>& outputCube,
57 bool isCloseOut =
false) = 0;
61 const std::string& name,
65 const QuantLib::ext::shared_ptr<SimMarket>& simMarket,
67 QuantLib::ext::shared_ptr<NPVCube>& outputCube) = 0;
82 virtual void calculate(
const std::string& name, Size nameIndex,
83 const QuantLib::ext::shared_ptr<SimMarket>& simMarket, QuantLib::ext::shared_ptr<NPVCube>& outputCube,
84 const Date& date, Size dateIndex, Size sample,
bool isCloseOut =
false)
override;
86 virtual void calculateT0(
const std::string& name, Size nameIndex,
87 const QuantLib::ext::shared_ptr<SimMarket>& simMarket, QuantLib::ext::shared_ptr<NPVCube>& outputCube)
override;
90 Real
survProb(
const std::string& name,
91 const QuantLib::ext::shared_ptr<SimMarket>& simMarket,
92 const Date& date = Date());
CounterpartyCalculator interface.
virtual void calculateT0(const std::string &name, Size nameIndex, const QuantLib::ext::shared_ptr< SimMarket > &simMarket, QuantLib::ext::shared_ptr< NPVCube > &outputCube)=0
virtual void calculate(const std::string &name, Size nameIndex, const QuantLib::ext::shared_ptr< SimMarket > &simMarket, QuantLib::ext::shared_ptr< NPVCube > &outputCube, const Date &date, Size dateIndex, Size sample, bool isCloseOut=false)=0
virtual ~CounterpartyCalculator()
SurvivalProbabilityCalculator.
std::string configuration_
~SurvivalProbabilityCalculator()
SurvivalProbabilityCalculator(const std::string &configuration, Size index=0)
base ccy and index to write to
Real survProb(const std::string &name, const QuantLib::ext::shared_ptr< SimMarket > &simMarket, const Date &date=Date())
virtual void calculate(const std::string &name, Size nameIndex, const QuantLib::ext::shared_ptr< SimMarket > &simMarket, QuantLib::ext::shared_ptr< NPVCube > &outputCube, const Date &date, Size dateIndex, Size sample, bool isCloseOut=false) override
virtual void calculateT0(const std::string &name, Size nameIndex, const QuantLib::ext::shared_ptr< SimMarket > &simMarket, QuantLib::ext::shared_ptr< NPVCube > &outputCube) override
A Market class that can be Simulated.