QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Pricing engine for compound options using analytical formulae. More...
#include <analyticcompoundoptionengine.hpp>
Public Member Functions | |
AnalyticCompoundOptionEngine (ext::shared_ptr< GeneralizedBlackScholesProcess > process) | |
void | calculate () const override |
Public Member Functions inherited from GenericEngine< CompoundOption::arguments, CompoundOption::results > | |
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 | |
CumulativeNormalDistribution | N_ |
NormalDistribution | n_ |
ext::shared_ptr< GeneralizedBlackScholesProcess > | process_ |
Additional Inherited Members | |
Public Types inherited from Observer | |
typedef set_type::iterator | iterator |
Protected Attributes inherited from GenericEngine< CompoundOption::arguments, CompoundOption::results > | |
CompoundOption::arguments | arguments_ |
CompoundOption::results | results_ |
Pricing engine for compound options using analytical formulae.
The formulas are taken from "Foreign Exchange Risk", Uwe Wystup, Risk 2002, where closed form Greeks are available. (not available in Haug 2007). Value: Page 84, Greeks: Pages 94-95.
Definition at line 42 of file analyticcompoundoptionengine.hpp.
|
explicit |
Definition at line 56 of file analyticcompoundoptionengine.cpp.
|
overridevirtual |
Implements PricingEngine.
Definition at line 62 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 171 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 167 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 175 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 163 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 159 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 249 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 255 of file analyticcompoundoptionengine.cpp.
Definition at line 259 of file analyticcompoundoptionengine.cpp.
|
private |
|
private |
Definition at line 221 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 217 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 265 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 180 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 186 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 269 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 275 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 191 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 195 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 150 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 155 of file analyticcompoundoptionengine.cpp.
Definition at line 281 of file analyticcompoundoptionengine.cpp.
Definition at line 291 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 225 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 229 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 233 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 237 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 241 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 245 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 210 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 201 of file analyticcompoundoptionengine.cpp.
|
private |
Definition at line 49 of file analyticcompoundoptionengine.hpp.
|
private |
Definition at line 50 of file analyticcompoundoptionengine.hpp.
|
private |
Definition at line 51 of file analyticcompoundoptionengine.hpp.