@@ -76,20 +76,13 @@ class SensitivityCube {
7676 // ! Return the map of up trade id's to index in cube
7777 const std::map<std::string, QuantLib::Size>& tradeIdx () const { return cube_->idsAndIndexes (); };
7878
79- /* ! Return factor for given up/down scenario index or None if given index
80- is not an up/down scenario (to be reviewed) */
81- RiskFactorKey upFactor (const Size upDownIndex) const ;
79+ /* ! Return factor for given up scenario index or None if given index is not an up scenario (to be reviewed) */
80+ RiskFactorKey upFactor (const Size upIndex) const ;
8281
83- /* ! Return factor for given up/down scenario index or None if given index
84- is not an up/down scenario (to be reviewed) */
85- RiskFactorKey downFactor (const Size upDownIndex) const ;
82+ /* ! Return factor for given down scenario index or None if given index is not an down scenario (to be reviewed) */
83+ RiskFactorKey downFactor (const Size downIndex) const ;
8684
87- /* ! Return factor for given up/down scenario index or None if given index
88- is not an up/down scenario (to be reviewed) */
89- RiskFactorKey upDownFactor (const Size upDownIndex) const ;
90-
91- /* ! Return factor for given cross scenario index or None if given index
92- is not a cross scenario (to be reviewed) */
85+ /* ! Return factor for given cross scenario index or None if given index is not a cross scenario (to be reviewed) */
9386 crossPair crossFactor (const Size crossIndex) const ;
9487
9588 // ! Check if the cube has scenario NPVs for scenario with description \p scenarioDescription
@@ -181,10 +174,9 @@ class SensitivityCube {
181174 // Set of risk factor key types where we want a two-sided delta calculation.
182175 std::set<RiskFactorKey::KeyType> twoSidedDeltas_;
183176
184- // map of up / down / up-or-down / cross factor index to risk factor key
177+ // map of up / down / cross factor index to risk factor key
185178 std::map<QuantLib::Size, RiskFactorKey> upIndexToKey_;
186179 std::map<QuantLib::Size, RiskFactorKey> downIndexToKey_;
187- std::map<QuantLib::Size, RiskFactorKey> upDownIndexToKey_;
188180 std::map<QuantLib::Size, crossPair> crossIndexToKey_;
189181
190182};
0 commit comments