QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
#include <hestonexpansionengine.hpp>
Public Member Functions | |
LPP2HestonExpansion (Real kappa, Real theta, Real sigma, Real v0, Real rho, Real term) | |
Real | impliedVolatility (Real strike, Real forward) const override |
Public Member Functions inherited from HestonExpansion | |
virtual | ~HestonExpansion ()=default |
virtual Real | impliedVolatility (Real strike, Real forward) const =0 |
Private Member Functions | |
Real | z0 (Real t, Real kappa, Real theta, Real delta, Real y, Real rho) const |
Real | z1 (Real t, Real kappa, Real theta, Real delta, Real y, Real rho) const |
Real | z2 (Real t, Real kappa, Real theta, Real delta, Real y, Real rho) const |
Private Attributes | |
Real | coeffs [3] |
Real | ekt |
Real | e2kt |
Real | e3kt |
Real | e4kt |
Lorig Pagliarani Pascucci expansion of order-2 for the Heston model. During calibration, it can be initialized once per expiry, and called many times with different strikes. The formula is also available in the Mathematica notebook from the authors at http://explicitsolutions.wordpress.com/
Definition at line 80 of file hestonexpansionengine.hpp.
Implements HestonExpansion.
Definition at line 121 of file hestonexpansionengine.cpp.
Definition at line 128 of file hestonexpansionengine.cpp.
Definition at line 167 of file hestonexpansionengine.cpp.
Definition at line 184 of file hestonexpansionengine.cpp.
|
private |
Definition at line 86 of file hestonexpansionengine.hpp.
|
private |
Definition at line 87 of file hestonexpansionengine.hpp.
|
private |
Definition at line 87 of file hestonexpansionengine.hpp.
|
private |
Definition at line 87 of file hestonexpansionengine.hpp.
|
private |
Definition at line 87 of file hestonexpansionengine.hpp.