Re: [Quantlib-dev] PiecewiseYieldCurve

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/PiecewiseYieldCurve-tp3949p3950.html

On 07/28/2005 01:13:18 PM, Plamen Neykov wrote:

> I'm using the PiecewiseFlatForward and accounted some strange
> behaviour there
> - I think it is just because the  PiecewiseYieldCurve class had not
> overwritten the DiscountFactor discountImpl(Time) const method and
> therefore
> the calculate() method of the LazyObject (resp. the
> PiecewiseYieldCurve<C,I>::performCalculations() method) got never
> called.
>
> Am I seeing this correct or is there something other going wrong?

It's correct. I never noticed this bug as it is only triggered when  
extrapolation = true. I fixed it in CVS and added a test.

Thanks,
        Luigi


----------------------------------------

There is no likelihood man can ever tap the power of the atom.
-- Robert Millikan, Nobel Prize in Physics, 1923