Class MCLDPagodaEngine
- Namespace
- NanoQL.Experimental
- Assembly
- NanoQL.dll
MCPagodaEngine on low-discrepancy draws with QuantLib's default statistics: MCLDPagodaEngine,
named as QuantLib-Python names its siblings, QuantLib's MCPagodaEngine<LowDiscrepancy>, its
calculations closed at LowDiscrepancy and GeneralStatistics.
[Experimental("NQL0001")]
public static class MCLDPagodaEngine
- Inheritance
-
MCLDPagodaEngine
- Inherited Members
Methods
Calculate(PagodaOption, EvaluationContext, StochasticProcessArray, bool, bool, int?, double?, int?, long)
Prices a Pagoda option.
public static MultiAssetOptionResults Calculate(PagodaOption option, EvaluationContext context, StochasticProcessArray processes, bool brownianBridge, bool antitheticVariate, int? requiredSamples, double? requiredTolerance, int? maxSamples, long seed)
Parameters
optionPagodaOptionThe Pagoda option.
contextEvaluationContextThe evaluation context.
processesStochasticProcessArrayThe assets' correlated processes, the first a Black-Scholes process.
brownianBridgeboolWhether to build the paths by a Brownian bridge.
antitheticVariateboolWhether to use antithetic paths.
requiredSamplesint?The number of samples, or null.
requiredTolerancedouble?The tolerance, or null.
maxSamplesint?The largest number of samples, or null.
seedlongThe seed, in [1, 4294967295].
Returns
- MultiAssetOptionResults
The value and, where the traits allow one, its error estimate.
Exceptions
- ArgumentNullException
An argument is null.
- ArgumentOutOfRangeException
The seed or a sample count is out of range.
- NanoQLException
A fixing date precedes the evaluation date ("seasoned options are not handled") or the dates aren't sorted, the first process isn't a Black-Scholes process, neither samples nor a tolerance is given, or the simulation fails.