31 ext::shared_ptr<Payoff>
payoff,
32 ext::shared_ptr<HybridHestonHullWhiteProcess> process)
39 for (
Size j=0; j < states.
size(); ++j) {
40 states[j] = path[j][path.
pathSize()-1];
45 return (*
payoff_)(states[0])*df;
1-D array used in linear algebra.
Size size() const
dimension of the array
HestonHullWhitePathPricer(Time exerciseTime, ext::shared_ptr< Payoff > payoff, ext::shared_ptr< HybridHestonHullWhiteProcess > process)
ext::shared_ptr< Payoff > payoff_
Real operator()(const MultiPath &path) const override
ext::shared_ptr< HybridHestonHullWhiteProcess > process_
Correlated multiple asset paths.
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
const ext::shared_ptr< Payoff > payoff_
Real Time
continuous quantity with 1-year units
Real DiscountFactor
discount factor between dates
std::size_t Size
size of a container
ext::shared_ptr< QuantLib::Payoff > payoff
Monte Carlo vanilla option engine for stochastic interest rates.