Class MCLDDiscreteGeometricAPHestonEngine
- Namespace
- NanoQL.PricingEngines
- Assembly
- NanoQL.dll
MCDiscreteGeometricAPHestonEngine on low-discrepancy draws with QuantLib's default statistics:
QuantLib-Python's MCLDDiscreteGeometricAPHestonEngine, QuantLib's
MCDiscreteGeometricAPHestonEngine<LowDiscrepancy>, its calculations closed at
LowDiscrepancy and GeneralStatistics.
public static class MCLDDiscreteGeometricAPHestonEngine
- Inheritance
-
MCLDDiscreteGeometricAPHestonEngine
- Inherited Members
Methods
Calculate(DiscreteAveragingAsianOption, EvaluationContext, HestonProcess, bool, int?, double?, int?, long, int?, int?)
Prices a discrete geometric average-price Asian option by Monte Carlo on a Heston process.
public static OneAssetOptionResults Calculate(DiscreteAveragingAsianOption option, EvaluationContext context, HestonProcess process, bool antitheticVariate, int? requiredSamples, double? requiredTolerance, int? maxSamples, long seed, int? timeSteps = null, int? timeStepsPerYear = null)
Parameters
optionDiscreteAveragingAsianOptionThe option.
contextEvaluationContextThe evaluation context.
processHestonProcessThe Heston process.
antitheticVariateboolWhether antithetic variates are used.
requiredSamplesint?The number of samples, or null.
requiredTolerancedouble?The absolute tolerance, or null; it takes precedence.
maxSamplesint?The most samples for a tolerance, or null for no limit.
seedlongThe seed, in [1, 4294967295].
timeStepsint?The number of time steps, or null.
timeStepsPerYearint?The number of time steps per year, or null.
Returns
- OneAssetOptionResults
The option's results, the NPV, the error estimate and the grid; the expired results when it has expired.
Exceptions
- ArgumentNullException
The option, the context or the process is null.
- ArgumentException
Both the time steps and the time steps per year are given.
- ArgumentOutOfRangeException
A number of samples or steps is negative, or the seed is outside its range.
- NanoQLException
The option's past fixings fail its checks, the payoff isn't plain vanilla, the exercise isn't European, every fixing is in the past, or the samples can't reach the tolerance.