QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
#include <hestonexpansionengine.hpp>
Public Member Functions | |
LPP3HestonExpansion (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 |
Real | z3 (Real t, Real kappa, Real theta, Real delta, Real y, Real rho) const |
Private Attributes | |
Real | coeffs [4] |
Real | ekt |
Real | e2kt |
Real | e3kt |
Real | e4kt |
Lorig Pagliarani Pascucci expansion of order-3 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 102 of file hestonexpansionengine.hpp.
Implements HestonExpansion.
Definition at line 733 of file hestonexpansionengine.cpp.
Definition at line 224 of file hestonexpansionengine.cpp.
Definition at line 422 of file hestonexpansionengine.cpp.
Definition at line 597 of file hestonexpansionengine.cpp.
Definition at line 660 of file hestonexpansionengine.cpp.
|
private |
Definition at line 108 of file hestonexpansionengine.hpp.
|
private |
Definition at line 109 of file hestonexpansionengine.hpp.
|
private |
Definition at line 109 of file hestonexpansionengine.hpp.
|
private |
Definition at line 109 of file hestonexpansionengine.hpp.
|
private |
Definition at line 109 of file hestonexpansionengine.hpp.