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