Login  Register

SwaptionVolCube2 - bug

Posted by Peter Caspers-4 on Mar 07, 2013; 4:26pm
URL: http://quantlib.414.s1.nabble.com/SwaptionVolCube2-bug-tp14105.html

Hi,
 
I guess there is a little bug in swaptionvolcube2.cpp. Starting in line 95 we have
 
 
        return boost::shared_ptr<SmileSection>(new
            InterpolatedSmileSection<Linear>(optionTime,
                                             strikes,
                                             stdDevs,
                                             atmVol));
 
but this should be
 
        return boost::shared_ptr<SmileSection>(new
            InterpolatedSmileSection<Linear>(optionTime,
                                             strikes,
                                             stdDevs,
                                             atmForward));
 
Kind regards
Peter

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev