Class ArithmeticAPOHestonPathPricer
- Namespace
- NanoQL.PricingEngines
- Assembly
- NanoQL.dll
The path pricer of a discrete arithmetic average-price Asian option on a Heston path: the discounted payoff at the average of the asset's values at the fixing indices and the past fixings.
public sealed class ArithmeticAPOHestonPathPricer : PathPricer<MultiPath>
- Inheritance
-
ArithmeticAPOHestonPathPricer
- Inherited Members
Remarks
QuantLib's. The engine gives an index once per fixing on its time, so a fixing date given twice counts twice, where QuantLib's engine gives each time once.
Constructors
ArithmeticAPOHestonPathPricer(OptionType, double, double, ImmutableArray<int>, double, int)
Initializes a new instance of the ArithmeticAPOHestonPathPricer class.
public ArithmeticAPOHestonPathPricer(OptionType type, double strike, double discount, ImmutableArray<int> fixingIndices, double runningSum = 0, int pastFixings = 0)
Parameters
typeOptionTypeThe option type.
strikedoubleThe strike, non-negative.
discountdoubleThe discount factor to the exercise.
fixingIndicesImmutableArray<int>The path's indices at the fixings, one per fixing.
runningSumdoubleThe sum of the past fixings.
pastFixingsintThe number of past fixings.
Exceptions
- ArgumentException
The strike is negative ("strike less than zero not allowed"), or the indices are the default array.
- ArgumentOutOfRangeException
pastFixingsor an index is negative.
Methods
Evaluate(MultiPath)
Prices a path.
public override double Evaluate(MultiPath path)
Parameters
pathMultiPathThe path.
Returns
- double
The discounted payoff.
Exceptions
- ArgumentNullException
pathis null.- NanoQLException
The path is empty.
- ArgumentException
A fixing index is past
path's end, where QuantLib reads past it.