Pricing engine for European vanilla forward options using analytical formulae. More...
#include <qle/pricingengines/analyticeuropeanforwardengine.hpp>
Inheritance diagram for AnalyticEuropeanForwardEngine:
Collaboration diagram for AnalyticEuropeanForwardEngine:Public Member Functions | |
| AnalyticEuropeanForwardEngine (const QuantLib::ext::shared_ptr< QuantLib::GeneralizedBlackScholesProcess > &) | |
| AnalyticEuropeanForwardEngine (const QuantLib::ext::shared_ptr< QuantLib::GeneralizedBlackScholesProcess > &process, const QuantLib::Handle< QuantLib::YieldTermStructure > &discountCurve) | |
| void | calculate () const override |
Private Attributes | |
| QuantLib::ext::shared_ptr< QuantLib::GeneralizedBlackScholesProcess > | process_ |
| QuantLib::Handle< QuantLib::YieldTermStructure > | discountCurve_ |
Pricing engine for European vanilla forward options using analytical formulae.
Definition at line 53 of file analyticeuropeanforwardengine.hpp.
|
explicit |
This constructor triggers the usual calculation, in which the risk-free rate in the given process is used for both forecasting and discounting.
Definition at line 60 of file analyticeuropeanforwardengine.cpp.
| AnalyticEuropeanForwardEngine | ( | const QuantLib::ext::shared_ptr< QuantLib::GeneralizedBlackScholesProcess > & | process, |
| const QuantLib::Handle< QuantLib::YieldTermStructure > & | discountCurve | ||
| ) |
This constructor allows to use a different term structure for discounting the payoff. As usual, the risk-free rate from the given process is used for forecasting the forward price.
Definition at line 66 of file analyticeuropeanforwardengine.cpp.
|
override |
Definition at line 74 of file analyticeuropeanforwardengine.cpp.
Here is the call graph for this function:
|
private |
Definition at line 72 of file analyticeuropeanforwardengine.hpp.
|
private |
Definition at line 73 of file analyticeuropeanforwardengine.hpp.