|
QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
|
Finite-differences Heston vanilla option engine. More...
#include <fdhestonvanillaengine.hpp>
Inheritance diagram for FdHestonVanillaEngine:
Collaboration diagram for FdHestonVanillaEngine:Public Member Functions | |
| FdHestonVanillaEngine (const ext::shared_ptr< HestonModel > &model, Size tGrid=100, Size xGrid=100, Size vGrid=50, Size dampingSteps=0, const FdmSchemeDesc &schemeDesc=FdmSchemeDesc::Hundsdorfer(), ext::shared_ptr< LocalVolTermStructure > leverageFct={}, Real mixingFactor=1.0) | |
| FdHestonVanillaEngine (const ext::shared_ptr< HestonModel > &model, DividendSchedule dividends, Size tGrid=100, Size xGrid=100, Size vGrid=50, Size dampingSteps=0, const FdmSchemeDesc &schemeDesc=FdmSchemeDesc::Hundsdorfer(), ext::shared_ptr< LocalVolTermStructure > leverageFct={}, Real mixingFactor=1.0) | |
| FdHestonVanillaEngine (const ext::shared_ptr< HestonModel > &model, ext::shared_ptr< FdmQuantoHelper > quantoHelper, Size tGrid=100, Size xGrid=100, Size vGrid=50, Size dampingSteps=0, const FdmSchemeDesc &schemeDesc=FdmSchemeDesc::Hundsdorfer(), ext::shared_ptr< LocalVolTermStructure > leverageFct={}, Real mixingFactor=1.0) | |
| FdHestonVanillaEngine (const ext::shared_ptr< HestonModel > &model, DividendSchedule dividends, ext::shared_ptr< FdmQuantoHelper > quantoHelper, Size tGrid=100, Size xGrid=100, Size vGrid=50, Size dampingSteps=0, const FdmSchemeDesc &schemeDesc=FdmSchemeDesc::Hundsdorfer(), ext::shared_ptr< LocalVolTermStructure > leverageFct={}, Real mixingFactor=1.0) | |
| void | calculate () const override |
| void | update () override |
| void | enableMultipleStrikesCaching (const std::vector< Real > &strikes) |
| FdmSolverDesc | getSolverDesc (Real equityScaleFactor) const |
Public Member Functions inherited from GenericModelEngine< HestonModel, VanillaOption::arguments, VanillaOption::results > | |
| GenericModelEngine (Handle< HestonModel > model=Handle< HestonModel >()) | |
| GenericModelEngine (const ext::shared_ptr< HestonModel > &model) | |
Public Member Functions inherited from GenericEngine< ArgumentsType, ResultsType > | |
| PricingEngine::arguments * | getArguments () const override |
| const PricingEngine::results * | getResults () const override |
| void | reset () override |
| void | update () override |
Public Member Functions inherited from PricingEngine | |
| ~PricingEngine () override=default | |
| virtual arguments * | getArguments () const =0 |
| virtual const results * | getResults () const =0 |
| virtual void | reset ()=0 |
| virtual void | calculate () const =0 |
Public Member Functions inherited from Observable | |
| Observable ()=default | |
| Observable (const Observable &) | |
| Observable & | operator= (const Observable &) |
| Observable (Observable &&)=delete | |
| Observable & | operator= (Observable &&)=delete |
| virtual | ~Observable ()=default |
| void | notifyObservers () |
Public Member Functions inherited from Observer | |
| Observer ()=default | |
| Observer (const Observer &) | |
| Observer & | operator= (const Observer &) |
| virtual | ~Observer () |
| std::pair< iterator, bool > | registerWith (const ext::shared_ptr< Observable > &) |
| void | registerWithObservables (const ext::shared_ptr< Observer > &) |
| Size | unregisterWith (const ext::shared_ptr< Observable > &) |
| void | unregisterWithAll () |
| virtual void | update ()=0 |
| virtual void | deepUpdate () |
Private Attributes | |
| DividendSchedule | dividends_ |
| const Size | tGrid_ |
| const Size | xGrid_ |
| const Size | vGrid_ |
| const Size | dampingSteps_ |
| const FdmSchemeDesc | schemeDesc_ |
| const ext::shared_ptr< LocalVolTermStructure > | leverageFct_ |
| const ext::shared_ptr< FdmQuantoHelper > | quantoHelper_ |
| const Real | mixingFactor_ |
| std::vector< Real > | strikes_ |
| std::vector< std::pair< VanillaOption::arguments, VanillaOption::results > > | cachedArgs2results_ |
Additional Inherited Members | |
Public Types inherited from Observer | |
| typedef set_type::iterator | iterator |
Protected Attributes inherited from GenericModelEngine< HestonModel, VanillaOption::arguments, VanillaOption::results > | |
| Handle< HestonModel > | model_ |
Protected Attributes inherited from GenericEngine< ArgumentsType, ResultsType > | |
| ArgumentsType | arguments_ |
| ResultsType | results_ |
Finite-differences Heston vanilla option engine.
Definition at line 47 of file fdhestonvanillaengine.hpp.
|
explicit |
Definition at line 37 of file fdhestonvanillaengine.cpp.
| FdHestonVanillaEngine | ( | const ext::shared_ptr< HestonModel > & | model, |
| DividendSchedule | dividends, | ||
| Size | tGrid = 100, |
||
| Size | xGrid = 100, |
||
| Size | vGrid = 50, |
||
| Size | dampingSteps = 0, |
||
| const FdmSchemeDesc & | schemeDesc = FdmSchemeDesc::Hundsdorfer(), |
||
| ext::shared_ptr< LocalVolTermStructure > | leverageFct = {}, |
||
| Real | mixingFactor = 1.0 |
||
| ) |
Definition at line 52 of file fdhestonvanillaengine.cpp.
| FdHestonVanillaEngine | ( | const ext::shared_ptr< HestonModel > & | model, |
| ext::shared_ptr< FdmQuantoHelper > | quantoHelper, | ||
| Size | tGrid = 100, |
||
| Size | xGrid = 100, |
||
| Size | vGrid = 50, |
||
| Size | dampingSteps = 0, |
||
| const FdmSchemeDesc & | schemeDesc = FdmSchemeDesc::Hundsdorfer(), |
||
| ext::shared_ptr< LocalVolTermStructure > | leverageFct = {}, |
||
| Real | mixingFactor = 1.0 |
||
| ) |
Definition at line 69 of file fdhestonvanillaengine.cpp.
| FdHestonVanillaEngine | ( | const ext::shared_ptr< HestonModel > & | model, |
| DividendSchedule | dividends, | ||
| ext::shared_ptr< FdmQuantoHelper > | quantoHelper, | ||
| Size | tGrid = 100, |
||
| Size | xGrid = 100, |
||
| Size | vGrid = 50, |
||
| Size | dampingSteps = 0, |
||
| const FdmSchemeDesc & | schemeDesc = FdmSchemeDesc::Hundsdorfer(), |
||
| ext::shared_ptr< LocalVolTermStructure > | leverageFct = {}, |
||
| Real | mixingFactor = 1.0 |
||
| ) |
Definition at line 85 of file fdhestonvanillaengine.cpp.
|
overridevirtual |
Implements PricingEngine.
Definition at line 175 of file fdhestonvanillaengine.cpp.
Here is the call graph for this function:
|
overridevirtual |
This method must be implemented in derived classes. An instance of Observer does not call this method directly: instead, it will be called by the observables the instance registered with when they need to notify any changes.
Reimplemented from GenericEngine< ArgumentsType, ResultsType >.
Definition at line 231 of file fdhestonvanillaengine.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void enableMultipleStrikesCaching | ( | const std::vector< Real > & | strikes | ) |
Definition at line 238 of file fdhestonvanillaengine.cpp.
| FdmSolverDesc getSolverDesc | ( | Real | equityScaleFactor | ) | const |
Definition at line 103 of file fdhestonvanillaengine.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 103 of file fdhestonvanillaengine.hpp.
|
private |
Definition at line 104 of file fdhestonvanillaengine.hpp.
|
private |
Definition at line 104 of file fdhestonvanillaengine.hpp.
|
private |
Definition at line 104 of file fdhestonvanillaengine.hpp.
|
private |
Definition at line 104 of file fdhestonvanillaengine.hpp.
|
private |
Definition at line 105 of file fdhestonvanillaengine.hpp.
|
private |
Definition at line 106 of file fdhestonvanillaengine.hpp.
|
private |
Definition at line 107 of file fdhestonvanillaengine.hpp.
|
private |
Definition at line 108 of file fdhestonvanillaengine.hpp.
|
private |
Definition at line 110 of file fdhestonvanillaengine.hpp.
|
mutableprivate |
Definition at line 113 of file fdhestonvanillaengine.hpp.