Class MCLDEuropeanGJRGARCHEngine
- Namespace
- NanoQL.PricingEngines
- Assembly
- NanoQL.dll
MCEuropeanGJRGARCHEngine on low-discrepancy draws with QuantLib's default statistics:
QuantLib-Python's MCLDEuropeanGJRGARCHEngine, QuantLib's
MCEuropeanGJRGARCHEngine<LowDiscrepancy>, its calculations closed at LowDiscrepancy and
GeneralStatistics.
public static class MCLDEuropeanGJRGARCHEngine
- Inheritance
-
MCLDEuropeanGJRGARCHEngine
- Inherited Members
Methods
Calculate(VanillaOption, EvaluationContext, GJRGARCHProcess, int?, int?, bool, int?, double?, int?, long)
Prices a European plain-vanilla option.
public static OneAssetOptionResults Calculate(VanillaOption option, EvaluationContext context, GJRGARCHProcess process, int? timeSteps, int? timeStepsPerYear, bool antitheticVariate, int? requiredSamples, double? requiredTolerance, int? maxSamples, long seed)
Parameters
optionVanillaOptionThe option.
contextEvaluationContextThe evaluation context.
processGJRGARCHProcessThe GJR-GARCH process.
timeStepsint?The number of time steps, or null where they're given per year.
timeStepsPerYearint?The number of time steps per year, or null.
antitheticVariateboolWhether antithetic variates are used.
requiredSamplesint?The number of samples, or null where a tolerance is given.
requiredTolerancedouble?The absolute tolerance, or null.
maxSamplesint?The most samples, or null.
seedlongThe seed.
Returns
- OneAssetOptionResults
The option's results: its value and error estimate.
Exceptions
- ArgumentNullException
An argument is null.
- NanoQLException
The payoff isn't plain vanilla, or QuantLib's Monte Carlo checks fail.