28 const vector<RiskFactorKey>& keys =
simMarket_->baseScenario()->keys();
30 vector<Period> tenors;
34 for (Size k = 0; k < keys.size(); ++k) {
38 Real df = scenario->get(keys[k]);
39 Real compound = 1 / df;
48 endDate =
asof + tenors[keys[k].index];
49 Real zero = InterestRate::impliedRate(compound, dc, QuantLib::Compounding::Continuous,
50 QuantLib::Frequency::Annual,
asof, endDate)
52 scenario->add(keys[k], zero);