SurvivalProbabilityCalculator. More...
#include <orea/engine/cptycalculator.hpp>
Public Member Functions | |
~SurvivalProbabilityCalculator () | |
SurvivalProbabilityCalculator (const std::string &configuration, Size index=0) | |
base ccy and index to write to More... | |
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 |
Public Member Functions inherited from CounterpartyCalculator | |
virtual | ~CounterpartyCalculator () |
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 void | calculateT0 (const std::string &name, Size nameIndex, const QuantLib::ext::shared_ptr< SimMarket > &simMarket, QuantLib::ext::shared_ptr< NPVCube > &outputCube)=0 |
Private Member Functions | |
Real | survProb (const std::string &name, const QuantLib::ext::shared_ptr< SimMarket > &simMarket, const Date &date=Date()) |
Private Attributes | |
std::string | configuration_ |
Size | index_ |
SurvivalProbabilityCalculator.
Calculate the survival probability of a counterparty If the SurvivalProbabilityCalculator() call throws, we log an exception and write 1 to the cube
Definition at line 75 of file cptycalculator.hpp.
Definition at line 77 of file cptycalculator.hpp.
SurvivalProbabilityCalculator | ( | const std::string & | configuration, |
Size | index = 0 |
||
) |
base ccy and index to write to
Definition at line 79 of file cptycalculator.hpp.
|
overridevirtual |
Implements CounterpartyCalculator.
Definition at line 31 of file cptycalculator.cpp.
|
overridevirtual |
Implements CounterpartyCalculator.
Definition at line 38 of file cptycalculator.cpp.
|
private |
Definition at line 44 of file cptycalculator.cpp.
|
private |
Definition at line 94 of file cptycalculator.hpp.
|
private |
Definition at line 95 of file cptycalculator.hpp.