|
QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
|
Finite-differences Black Scholes vanilla option engine. More...
#include <fdblackscholesvanillaengine.hpp>
Inheritance diagram for FdBlackScholesVanillaEngine:
Collaboration diagram for FdBlackScholesVanillaEngine:Public Types | |
| enum | CashDividendModel { Spot , Escrowed } |
Public Member Functions | |
| FdBlackScholesVanillaEngine (ext::shared_ptr< GeneralizedBlackScholesProcess >, Size tGrid=100, Size xGrid=100, Size dampingSteps=0, const FdmSchemeDesc &schemeDesc=FdmSchemeDesc::Douglas(), bool localVol=false, Real illegalLocalVolOverwrite=-Null< Real >(), CashDividendModel cashDividendModel=Spot) | |
| FdBlackScholesVanillaEngine (ext::shared_ptr< GeneralizedBlackScholesProcess >, DividendSchedule dividends, Size tGrid=100, Size xGrid=100, Size dampingSteps=0, const FdmSchemeDesc &schemeDesc=FdmSchemeDesc::Douglas(), bool localVol=false, Real illegalLocalVolOverwrite=-Null< Real >(), CashDividendModel cashDividendModel=Spot) | |
| FdBlackScholesVanillaEngine (ext::shared_ptr< GeneralizedBlackScholesProcess >, ext::shared_ptr< FdmQuantoHelper > quantoHelper, Size tGrid=100, Size xGrid=100, Size dampingSteps=0, const FdmSchemeDesc &schemeDesc=FdmSchemeDesc::Douglas(), bool localVol=false, Real illegalLocalVolOverwrite=-Null< Real >(), CashDividendModel cashDividendModel=Spot) | |
| FdBlackScholesVanillaEngine (ext::shared_ptr< GeneralizedBlackScholesProcess >, DividendSchedule dividends, ext::shared_ptr< FdmQuantoHelper > quantoHelper, Size tGrid=100, Size xGrid=100, Size dampingSteps=0, const FdmSchemeDesc &schemeDesc=FdmSchemeDesc::Douglas(), bool localVol=false, Real illegalLocalVolOverwrite=-Null< Real >(), CashDividendModel cashDividendModel=Spot) | |
| void | calculate () const override |
Private Attributes | |
| ext::shared_ptr< GeneralizedBlackScholesProcess > | process_ |
| DividendSchedule | dividends_ |
| Size | tGrid_ |
| Size | xGrid_ |
| Size | dampingSteps_ |
| FdmSchemeDesc | schemeDesc_ |
| bool | localVol_ |
| Real | illegalLocalVolOverwrite_ |
| ext::shared_ptr< FdmQuantoHelper > | quantoHelper_ |
| CashDividendModel | cashDividendModel_ |
Finite-differences Black Scholes vanilla option engine.
Definition at line 45 of file fdblackscholesvanillaengine.hpp.
| enum CashDividendModel |
| Enumerator | |
|---|---|
| Spot | |
| Escrowed | |
Definition at line 47 of file fdblackscholesvanillaengine.hpp.
|
explicit |
Definition at line 37 of file fdblackscholesvanillaengine.cpp.
| FdBlackScholesVanillaEngine | ( | ext::shared_ptr< GeneralizedBlackScholesProcess > | process, |
| DividendSchedule | dividends, | ||
| Size | tGrid = 100, |
||
| Size | xGrid = 100, |
||
| Size | dampingSteps = 0, |
||
| const FdmSchemeDesc & | schemeDesc = FdmSchemeDesc::Douglas(), |
||
| bool | localVol = false, |
||
| Real | illegalLocalVolOverwrite = -Null<Real>(), |
||
| CashDividendModel | cashDividendModel = Spot |
||
| ) |
Definition at line 52 of file fdblackscholesvanillaengine.cpp.
| FdBlackScholesVanillaEngine | ( | ext::shared_ptr< GeneralizedBlackScholesProcess > | process, |
| ext::shared_ptr< FdmQuantoHelper > | quantoHelper, | ||
| Size | tGrid = 100, |
||
| Size | xGrid = 100, |
||
| Size | dampingSteps = 0, |
||
| const FdmSchemeDesc & | schemeDesc = FdmSchemeDesc::Douglas(), |
||
| bool | localVol = false, |
||
| Real | illegalLocalVolOverwrite = -Null<Real>(), |
||
| CashDividendModel | cashDividendModel = Spot |
||
| ) |
Definition at line 69 of file fdblackscholesvanillaengine.cpp.
| FdBlackScholesVanillaEngine | ( | ext::shared_ptr< GeneralizedBlackScholesProcess > | process, |
| DividendSchedule | dividends, | ||
| ext::shared_ptr< FdmQuantoHelper > | quantoHelper, | ||
| Size | tGrid = 100, |
||
| Size | xGrid = 100, |
||
| Size | dampingSteps = 0, |
||
| const FdmSchemeDesc & | schemeDesc = FdmSchemeDesc::Douglas(), |
||
| bool | localVol = false, |
||
| Real | illegalLocalVolOverwrite = -Null<Real>(), |
||
| CashDividendModel | cashDividendModel = Spot |
||
| ) |
Definition at line 88 of file fdblackscholesvanillaengine.cpp.
|
override |
Definition at line 109 of file fdblackscholesvanillaengine.cpp.
Here is the call graph for this function:
|
private |
Definition at line 96 of file fdblackscholesvanillaengine.hpp.
|
private |
Definition at line 97 of file fdblackscholesvanillaengine.hpp.
|
private |
Definition at line 98 of file fdblackscholesvanillaengine.hpp.
|
private |
Definition at line 98 of file fdblackscholesvanillaengine.hpp.
|
private |
Definition at line 98 of file fdblackscholesvanillaengine.hpp.
|
private |
Definition at line 99 of file fdblackscholesvanillaengine.hpp.
|
private |
Definition at line 100 of file fdblackscholesvanillaengine.hpp.
|
private |
Definition at line 101 of file fdblackscholesvanillaengine.hpp.
|
private |
Definition at line 102 of file fdblackscholesvanillaengine.hpp.
|
private |
Definition at line 103 of file fdblackscholesvanillaengine.hpp.