|
From: Adjriou B. <bad...@ya...> - 2005-03-04 09:39:25
|
Hi,
there is a problem when I want to extrapolate a yield at one date which is not in the spreaded curve. The problem comes from :
inline Rate ZeroSpreadedTermStructure::zeroYieldImpl(Time t) const {
// return originalCurve_->zeroYield(t, true) + spread_->value();
return originalCurve_->zeroRate(t, Continuous, NoFrequency) +
spread_->value();
}
It should be used with a boolean extrapolate :
return originalCurve_->zeroRate(t, Continuous, NoFrequency,extrapolate) +
spread_->value();
It's missing a parameter in the zeroYieldImpl function.
regards
---------------------------------
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail |