Class MinBasketPayoff
- Namespace
- NanoQL.Instruments
- Assembly
- NanoQL.dll
A basket payoff on the smallest of the assets' prices.
public sealed class MinBasketPayoff : BasketPayoff
- Inheritance
-
MinBasketPayoff
- Inherited Members
Remarks
An empty basket is refused, where QuantLib dereferences the end of the empty range
(Divergences/BasketPayoffEmptyTests.cs).
Constructors
MinBasketPayoff(Payoff)
Initializes a new instance of the MinBasketPayoff class.
public MinBasketPayoff(Payoff basePayoff)
Parameters
basePayoffPayoffThe one-dimensional payoff applied to the minimum.
Exceptions
- ArgumentNullException
basePayoffis null.
Methods
Accumulate(ReadOnlySpan<double>)
The smallest of the prices, the first of equal ones, as std::min_element keeps it.
public override double Accumulate(ReadOnlySpan<double> a)
Parameters
aReadOnlySpan<double>The assets' prices.
Returns
- double
The minimum.
Exceptions
- ArgumentException
ais empty.