QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
|
Finite-differences Heston Hull-White vanilla option engine. More...
#include <ql/pricingengines/vanilla/fdhestonhullwhitevanillaengine.hpp>
Public Member Functions | |
FdHestonHullWhiteVanillaEngine (const ext::shared_ptr< HestonModel > &model, ext::shared_ptr< HullWhiteProcess > hwProcess, Real corrEquityShortRate, Size tGrid=50, Size xGrid=100, Size vGrid=40, Size rGrid=20, Size dampingSteps=0, bool controlVariate=true, const FdmSchemeDesc &schemeDesc=FdmSchemeDesc::Hundsdorfer()) | |
FdHestonHullWhiteVanillaEngine (const ext::shared_ptr< HestonModel > &model, ext::shared_ptr< HullWhiteProcess > hwProcess, DividendSchedule dividends, Real corrEquityShortRate, Size tGrid=50, Size xGrid=100, Size vGrid=40, Size rGrid=20, Size dampingSteps=0, bool controlVariate=true, const FdmSchemeDesc &schemeDesc=FdmSchemeDesc::Hundsdorfer()) | |
void | calculate () const override |
void | update () override |
void | enableMultipleStrikesCaching (const std::vector< Real > &strikes) |
Public Member Functions inherited from GenericModelEngine< HestonModel, DividendVanillaOption::arguments, DividendVanillaOption::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 () | |
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 | |
const ext::shared_ptr< HullWhiteProcess > | hwProcess_ |
DividendSchedule | dividends_ |
bool | explicitDividends_ |
const Real | corrEquityShortRate_ |
const Size | tGrid_ |
const Size | xGrid_ |
const Size | vGrid_ |
const Size | rGrid_ |
const Size | dampingSteps_ |
const FdmSchemeDesc | schemeDesc_ |
const bool | controlVariate_ |
std::vector< Real > | strikes_ |
QL_DEPRECATED_DISABLE_WARNING std::vector< std::pair< DividendVanillaOption::arguments, DividendVanillaOption::results > > | cachedArgs2results_ |
Additional Inherited Members | |
Public Types inherited from Observer | |
typedef set_type::iterator | iterator |
Protected Attributes inherited from GenericModelEngine< HestonModel, DividendVanillaOption::arguments, DividendVanillaOption::results > | |
Handle< HestonModel > | model_ |
Protected Attributes inherited from GenericEngine< ArgumentsType, ResultsType > | |
ArgumentsType | arguments_ |
ResultsType | results_ |
Finite-differences Heston Hull-White vanilla option engine.
Definition at line 45 of file fdhestonhullwhitevanillaengine.hpp.
QL_DEPRECATED_DISABLE_WARNING FdHestonHullWhiteVanillaEngine | ( | const ext::shared_ptr< HestonModel > & | model, |
ext::shared_ptr< HullWhiteProcess > | hwProcess, | ||
Real | corrEquityShortRate, | ||
Size | tGrid = 50 , |
||
Size | xGrid = 100 , |
||
Size | vGrid = 40 , |
||
Size | rGrid = 20 , |
||
Size | dampingSteps = 0 , |
||
bool | controlVariate = true , |
||
const FdmSchemeDesc & | schemeDesc = FdmSchemeDesc::Hundsdorfer() |
||
) |
Definition at line 38 of file fdhestonhullwhitevanillaengine.cpp.
FdHestonHullWhiteVanillaEngine | ( | const ext::shared_ptr< HestonModel > & | model, |
ext::shared_ptr< HullWhiteProcess > | hwProcess, | ||
DividendSchedule | dividends, | ||
Real | corrEquityShortRate, | ||
Size | tGrid = 50 , |
||
Size | xGrid = 100 , |
||
Size | vGrid = 40 , |
||
Size | rGrid = 20 , |
||
Size | dampingSteps = 0 , |
||
bool | controlVariate = true , |
||
const FdmSchemeDesc & | schemeDesc = FdmSchemeDesc::Hundsdorfer() |
||
) |
Definition at line 57 of file fdhestonhullwhitevanillaengine.cpp.
|
overridevirtual |
Implements PricingEngine.
Definition at line 79 of file fdhestonhullwhitevanillaengine.cpp.
|
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 244 of file fdhestonhullwhitevanillaengine.cpp.
void enableMultipleStrikesCaching | ( | const std::vector< Real > & | strikes | ) |
Definition at line 253 of file fdhestonhullwhitevanillaengine.cpp.
|
private |
Definition at line 83 of file fdhestonhullwhitevanillaengine.hpp.
|
private |
Definition at line 84 of file fdhestonhullwhitevanillaengine.hpp.
|
private |
Definition at line 85 of file fdhestonhullwhitevanillaengine.hpp.
|
private |
Definition at line 86 of file fdhestonhullwhitevanillaengine.hpp.
|
private |
Definition at line 87 of file fdhestonhullwhitevanillaengine.hpp.
|
private |
Definition at line 87 of file fdhestonhullwhitevanillaengine.hpp.
|
private |
Definition at line 87 of file fdhestonhullwhitevanillaengine.hpp.
|
private |
Definition at line 87 of file fdhestonhullwhitevanillaengine.hpp.
|
private |
Definition at line 88 of file fdhestonhullwhitevanillaengine.hpp.
|
private |
Definition at line 89 of file fdhestonhullwhitevanillaengine.hpp.
|
private |
Definition at line 90 of file fdhestonhullwhitevanillaengine.hpp.
|
private |
Definition at line 92 of file fdhestonhullwhitevanillaengine.hpp.
|
mutableprivate |
Definition at line 96 of file fdhestonhullwhitevanillaengine.hpp.