Wrapper engine for the QuantLib engine to take settlement delay into account.
More...
#include <qle/pricingengines/analyticbarrierengine.hpp>
Wrapper engine for the QuantLib engine to take settlement delay into account.
Definition at line 36 of file analyticbarrierengine.hpp.
◆ AnalyticBarrierEngine()
AnalyticBarrierEngine |
( |
ext::shared_ptr< GeneralizedBlackScholesProcess > |
process, |
|
|
const Date & |
paymentDate |
|
) |
| |
◆ calculate()
Definition at line 32 of file analyticbarrierengine.cpp.
32 {
33 QuantLib::AnalyticBarrierEngine::calculate();
34
35
38 Rate expiryDateDiscount =
process_->riskFreeRate()->discount(
arguments_.exercise->lastDate());
39 Rate factor = payDateDiscount / expiryDateDiscount;
41 }
42
45}
const Instrument::results * results_
Swap::arguments * arguments_
◆ process_
ext::shared_ptr<GeneralizedBlackScholesProcess> process_ |
|
private |
◆ paymentDate_