41#ifndef quantext_barone_adesi_whaley_engine_hpp
42#define quantext_barone_adesi_whaley_engine_hpp
44#include <ql/instruments/vanillaoption.hpp>
45#include <ql/processes/blackscholesprocess.hpp>
61 static QuantLib::Real
criticalPrice(
const QuantLib::ext::shared_ptr<QuantLib::StrikedTypePayoff>& payoff,
62 QuantLib::DiscountFactor riskFreeDiscount,
63 QuantLib::DiscountFactor dividendDiscount, QuantLib::Real
variance,
64 QuantLib::Real tolerance = 1e-6);
68 QuantLib::ext::shared_ptr<QuantLib::GeneralizedBlackScholesProcess>
process_;
QuantLib::ext::shared_ptr< QuantLib::GeneralizedBlackScholesProcess > process_
static QuantLib::Real criticalPrice(const QuantLib::ext::shared_ptr< QuantLib::StrikedTypePayoff > &payoff, QuantLib::DiscountFactor riskFreeDiscount, QuantLib::DiscountFactor dividendDiscount, QuantLib::Real variance, QuantLib::Real tolerance=1e-6)
void calculate() const override
RandomVariable variance(const RandomVariable &r)