22#include <ql/pricingengines/basket/mceuropeanbasketengine.hpp>
29 : payoff_(
std::move(payoff)), discount_(discount) {}
34 QL_REQUIRE(n>0,
"the path cannot be empty");
37 QL_REQUIRE(numAssets>0,
"there must be some paths");
41 Array finalPrice(numAssets, 0.0);
42 for (j = 0; j < numAssets; j++)
43 finalPrice[j] = multiPath[j].back();
1-D array used in linear algebra.
ext::shared_ptr< BasketPayoff > payoff_
EuropeanMultiPathPricer(ext::shared_ptr< BasketPayoff > payoff, DiscountFactor discount)
Real operator()(const MultiPath &multiPath) const override
Correlated multiple asset paths.
Real DiscountFactor
discount factor between dates
std::size_t Size
size of a container