Class MCPRHestonHullWhiteEngine
- Namespace
- NanoQL.PricingEngines
- Assembly
- NanoQL.dll
MCHestonHullWhiteEngine on pseudo-random draws with QuantLib's default statistics:
MCPRHestonHullWhiteEngine, named as QuantLib-Python names its siblings, QuantLib's
MCHestonHullWhiteEngine<PseudoRandom>, its calculations closed at PseudoRandom and
GeneralStatistics.
public static class MCPRHestonHullWhiteEngine
- Inheritance
-
MCPRHestonHullWhiteEngine
- Inherited Members
Methods
Calculate(VanillaOption, EvaluationContext, HybridHestonHullWhiteProcess, int?, int?, bool, bool, int?, double?, int?, long)
Prices a European option.
public static OneAssetOptionResults Calculate(VanillaOption option, EvaluationContext context, HybridHestonHullWhiteProcess process, int? timeSteps, int? timeStepsPerYear, bool antitheticVariate, bool controlVariate, int? requiredSamples, double? requiredTolerance, int? maxSamples, long seed)
Parameters
optionVanillaOptionThe option.
contextEvaluationContextThe evaluation context.
processHybridHestonHullWhiteProcessThe hybrid 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.
controlVariateboolWhether the control variate is 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 exercise isn't European, the process's step fails, or QuantLib's Monte Carlo checks fail.