Class FdmLogBasketInnerValue
The inner value of a basket payoff on a mesher of the assets' log prices: the payoff at each point's prices.
[WorkingType]
public sealed class FdmLogBasketInnerValue : FdmInnerValueCalculator
- Inheritance
-
FdmLogBasketInnerValue
- Inherited Members
Remarks
A working type: it holds the buffer of a point's prices, which QuantLib builds per call, so a call allocates nothing.
Constructors
FdmLogBasketInnerValue(BasketPayoff, FdmMesher)
Initializes a new instance of the FdmLogBasketInnerValue class.
public FdmLogBasketInnerValue(BasketPayoff payoff, FdmMesher mesher)
Parameters
payoffBasketPayoffThe basket payoff.
mesherFdmMesherThe mesher, one direction per asset's log price.
Exceptions
- ArgumentNullException
payofformesheris null.
Methods
AvgInnerValue(FdmLinearOpIterator, double)
The inner value, the payoff at the point's prices: QuantLib takes no cell average here.
public override double AvgInnerValue(FdmLinearOpIterator iter, double t)
Parameters
iterFdmLinearOpIteratorThe point.
tdoubleThe time, unused.
Returns
- double
The inner value.
Exceptions
- ArgumentNullException
iteris null.- ArgumentException
The payoff refuses the prices.
InnerValue(FdmLinearOpIterator, double)
The payoff at the point's prices, the exponentials of its locations.
public override double InnerValue(FdmLinearOpIterator iter, double t)
Parameters
iterFdmLinearOpIteratorThe point.
tdoubleThe time, unused.
Returns
- double
The inner value.
Exceptions
- ArgumentNullException
iteris null.- ArgumentException
The payoff refuses the prices.