swaptionVolCube2 bug

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

swaptionVolCube2 bug

petercaspers
Hi, I think in swaptionVolCube2.cpp, line 70 (QL 0.9.0) is a bug:

Period swapTenor( ... rounder(swapLength/12.0) , Months)

must be

Period swapTenor( ... rounder(swapLength*12.0) , Months)

?

Regards, Peter


Reply | Threaded
Open this post in threaded view
|

Re: swaptionVolCube2 bug

Ferdinando M. Ametrano-3
On Fri, Aug 15, 2008 at 3:17 PM, petercaspers <[hidden email]> wrote:
> Hi, I think in swaptionVolCube2.cpp, line 70 (QL 0.9.0) is a bug:
>
> Period swapTenor( ... rounder(swapLength/12.0) , Months)
>
> must be
>
> Period swapTenor( ... rounder(swapLength*12.0) , Months)

yes, you're right. I'll fix on the trunk shortly

We probably didn't catch it before because
smileSectionImpl(const Date& optionDate, const Period& swapTenor) const
is used much more than
smileSectionImpl(Time optionTime, Time swapLength) const

thank you

ciao -- Nando

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev