23#ifndef quantext_analytic_outperformance_option_engine_hpp
24#define quantext_analytic_outperformance_option_engine_hpp
27#include <ql/processes/blackscholesprocess.hpp>
38 const ext::shared_ptr<GeneralizedBlackScholesProcess>& process2,
39 const Handle<CorrelationTermStructure>&
correlation, QuantLib::Size integrationPoints);
44 Real
rho(Time t)
const {
return std::max(std::min(
correlation(t), 0.9999), -0.9999); }
45 Real
integrand(
const Real x, Real phi, Real k, Real m1, Real m2, Real v1, Real v2, Real s1, Real s2, Real i1, Real i2, Real fixingTime)
const;
51 ext::shared_ptr<GeneralizedBlackScholesProcess>
process1_;
52 ext::shared_ptr<GeneralizedBlackScholesProcess>
process2_;
Term structure of correlations.