33 const Real multiplier =
arguments_.position == Position::Long ? 1.0 : -1.0;
34 const Real volatility =
sqrt(boost::any_cast<Real>(
results_.additionalResults.at(
"totalVariance")));
37 results_.value = multiplier * df *
arguments_.notional * 100.0 * (volatility - volatilityStrike);
const Instrument::results * results_
void calculate() const override
Handle< YieldTermStructure > discountingTS_
void calculate() const override
RandomVariable sqrt(RandomVariable x)
Swap::arguments * arguments_