24#ifndef quantlib_analytic_partial_time_barrier_option_engine_hpp
25#define quantlib_analytic_partial_time_barrier_option_engine_hpp
42 ext::shared_ptr<GeneralizedBlackScholesProcess> process);
46 ext::shared_ptr<GeneralizedBlackScholesProcess>
process_;
48 const ext::shared_ptr<PlainVanillaPayoff>&
payoff,
49 const ext::shared_ptr<GeneralizedBlackScholesProcess>& process)
const;
analytic engine for partial-time barrier options.
Real g1(Real barrier, Real strike, Rate b) const
Real e4(Real barrier, Real strike, Rate b) const
Volatility volatility(Time t, Real strike) const
Time residualTime() const
Real g4(Real barrier, Real strike, Rate b) const
Real e3(Real barrier, Real strike, Rate b) const
Real CA(Integer n, Real barrier, Real strike, Rate r, Rate q) const
Real CIA(Integer n, Real barrier, Real strike, Rate r, Rate q) const
Real e2(Real barrier, Real strike, Rate b) const
void calculate() const override
Real HS(Real S, Real H, Real power) const
Real f1(Real barrier, Real strike, Rate b) const
Real CoB2(Barrier::Type barrierType, Real barrier, Real strike, Rate r, Rate q) const
Rate mu(Real strike, Rate b) const
Real d1(Real strike, Rate b) const
Real M(Real a, Real b, Real rho) const
Time coverEventTime() const
Real f2(Real barrier, Real strike, Rate b) const
ext::shared_ptr< GeneralizedBlackScholesProcess > process_
Real g3(Real barrier, Real strike, Rate b) const
Real g2(Real barrier, Real strike, Rate b) const
Real CoB1(Real barrier, Real strike, Rate r, Rate q) const
Real e1(Real barrier, Real strike, Rate b) const
Real d2(Real strike, Rate b) const
Arguments for partial-time barrier option calculation
Base class for partial-time barrier option engines.
std::function< Real(Real)> b
Real Time
continuous quantity with 1-year units
Real Volatility
volatility
QL_INTEGER Integer
integer number
Partial-time barrier option.
ext::shared_ptr< QuantLib::Payoff > payoff
ext::shared_ptr< YieldTermStructure > q
ext::shared_ptr< YieldTermStructure > r