19#include <ql/exercise.hpp>
28 const Date& paymentDate,
int series)
34 QuantLib::AnalyticDoubleBarrierEngine::calculate();
39 Rate expiryDateDiscount =
process_->riskFreeRate()->discount(
arguments_.exercise->lastDate());
40 Rate factor = payDateDiscount / expiryDateDiscount;
Analytic barrier option engines.
const Instrument::results * results_
Wrapper engine for the QuantLib engine to take settlement delay into account.
AnalyticDoubleBarrierEngine(ext::shared_ptr< GeneralizedBlackScholesProcess > process, const Date &paymentDate, int series=5)
void calculate() const override
ext::shared_ptr< GeneralizedBlackScholesProcess > process_
Swap::arguments * arguments_