Login  Register

Re: ql/experimental/inflation/yoycapfloortermpricesurface.hpp: bug in intersect() ? (raffaele.pellicani@zkb.ch)

classic Classic list List threaded Threaded
1 message Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: ql/experimental/inflation/yoycapfloortermpricesurface.hpp: bug in intersect() ? (raffaele.pellicani@zkb.ch)

Chris Kenyon-2
60 posts
Hi,

yes, this was a bug (thanks Raffaele). The fix is now in the 0.99 branch as:

if ( floorPrice_(t,fStrikes_.back()) > capPrice_(t,fStrikes_.back()) ) {

logic as before. 

Changing to fStrikes_.back() on both sides of the comparison ensures that the same strike is used (also as suggested), otherwise strange effects are possible.   

Best regards,
Chris


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev