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.
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
const ext::shared_ptr< Payoff > payoff_
Real DiscountFactor
discount factor between dates
std::size_t Size
size of a container
ext::shared_ptr< QuantLib::Payoff > payoff
European basket MC Engine.