Class EuropeanMultiPathPricer
- Namespace
- NanoQL.PricingEngines
- Assembly
- NanoQL.dll
The European basket option's path pricer: the basket payoff at the paths' final prices, discounted.
[WorkingType]
public sealed class EuropeanMultiPathPricer : PathPricer<MultiPath>
- Inheritance
-
EuropeanMultiPathPricer
- Inherited Members
Remarks
A working type: it holds the buffer it passes the final prices through, which QuantLib builds per path, so a path prices without allocating after the first.
Constructors
EuropeanMultiPathPricer(BasketPayoff, double)
Initializes a new instance of the EuropeanMultiPathPricer class.
public EuropeanMultiPathPricer(BasketPayoff payoff, double discount)
Parameters
payoffBasketPayoffThe basket payoff.
discountdoubleThe discount factor to the exercise date.
Exceptions
- ArgumentNullException
payoffis null.
Methods
Evaluate(MultiPath)
The discounted payoff at the paths' final prices.
public override double Evaluate(MultiPath multiPath)
Parameters
multiPathMultiPathThe assets' paths.
Returns
- double
The path's value.
Exceptions
- ArgumentNullException
multiPathis null.- NanoQLException
The paths are empty, or there is no asset.
- ArgumentException
The payoff refuses the prices.