We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 619a23a + 1e9efef commit 99c56ceCopy full SHA for 99c56ce
ql/termstructures/yield/fittedbonddiscountcurve.cpp
@@ -322,8 +322,7 @@ namespace QuantLib {
322
Array values(n + N);
323
for (Size i=0; i<n; ++i) {
324
ext::shared_ptr<BondHelper> helper = fittingMethod_->curve_->bondHelpers_[i];
325
- Real error = helper->impliedQuote() - helper->quote()->value();
326
- Real weightedError = fittingMethod_->weights_[i] * error;
+ Real weightedError = fittingMethod_->weights_[i] * helper->quoteError();
327
values[i] = weightedError * weightedError;
328
}
329
0 commit comments