Table of Contents

Class FdmLogBasketInnerValue

Namespace
NanoQL.Methods
Assembly
NanoQL.dll

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

payoff BasketPayoff

The basket payoff.

mesher FdmMesher

The mesher, one direction per asset's log price.

Exceptions

ArgumentNullException

payoff or mesher is 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

iter FdmLinearOpIterator

The point.

t double

The time, unused.

Returns

double

The inner value.

Exceptions

ArgumentNullException

iter is 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

iter FdmLinearOpIterator

The point.

t double

The time, unused.

Returns

double

The inner value.

Exceptions

ArgumentNullException

iter is null.

ArgumentException

The payoff refuses the prices.