41 ZeroToParCube(
const QuantLib::ext::shared_ptr<ore::analytics::SensitivityCube>& zeroCube,
42 const QuantLib::ext::shared_ptr<ParSensitivityConverter>&
parConverter,
43 const std::set<ore::analytics::RiskFactorKey::KeyType>&
typesDisabled = {},
44 const bool continueOnError =
false);
47 const QuantLib::ext::shared_ptr<ParSensitivityConverter>&
parConverter,
48 const std::set<ore::analytics::RiskFactorKey::KeyType>&
typesDisabled = {},
49 const bool continueOnError =
false);
54 const std::vector<QuantLib::ext::shared_ptr<ore::analytics::SensitivityCube>>&
zeroCubes()
const {
return zeroCubes_; }
62 std::map<ore::analytics::RiskFactorKey, QuantLib::Real>
parDeltas(
const std::string& tradeId)
const;
65 std::map<ore::analytics::RiskFactorKey, QuantLib::Real>
parDeltas(QuantLib::Size cubeIdx,
66 QuantLib::Size tradeIdx)
const;
69 std::vector<QuantLib::ext::shared_ptr<ore::analytics::SensitivityCube>>
zeroCubes_;
const std::vector< QuantLib::ext::shared_ptr< ore::analytics::SensitivityCube > > & zeroCubes() const
Inspectors.
ZeroToParCube(const std::vector< QuantLib::ext::shared_ptr< ore::analytics::SensitivityCube > > &zeroCubes, const QuantLib::ext::shared_ptr< ParSensitivityConverter > &parConverter, const std::set< ore::analytics::RiskFactorKey::KeyType > &typesDisabled={}, const bool continueOnError=false)
Another Constructor!
std::map< ore::analytics::RiskFactorKey, Size > factorToIndex_
std::set< ore::analytics::RiskFactorKey::KeyType > typesDisabled_
Set of risk factor types available for par conversion but that are disabled for this instance of Zero...
const bool continueOnError_
ZeroToParCube(const QuantLib::ext::shared_ptr< ore::analytics::SensitivityCube > &zeroCube, const QuantLib::ext::shared_ptr< ParSensitivityConverter > &parConverter, const std::set< ore::analytics::RiskFactorKey::KeyType > &typesDisabled={}, const bool continueOnError=false)
Constructor.
std::map< ore::analytics::RiskFactorKey, QuantLib::Real > parDeltas(const std::string &tradeId) const
Return the non-zero par deltas for the given tradeId.
std::vector< QuantLib::ext::shared_ptr< ore::analytics::SensitivityCube > > zeroCubes_
const QuantLib::ext::shared_ptr< ParSensitivityConverter > & parConverter() const
Par converter object.
QuantLib::ext::shared_ptr< ParSensitivityConverter > parConverter_
const std::set< ore::analytics::RiskFactorKey::KeyType > & typesDisabled() const
The par risk factor types that are disabled for this instance of ZeroToParCube.
Perfrom sensitivity analysis for a given portfolio.
holds a grid of NPVs for a list of trades under various scenarios