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

View: New views
1 Messages — Rating Filter:   Alert me  

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

by Chris Kenyon-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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
QuantLib-dev@...
https://lists.sourceforge.net/lists/listinfo/quantlib-dev