Struct SingleVariate<TRng>
The default Monte Carlo traits for single-variate models: MonteCarloPath paths from a PathGenerator<TGsg> over the random-number traits' sequence generator.
public readonly struct SingleVariate<TRng> : IMcTraits<MonteCarloPath> where TRng : IRngTraits
Type Parameters
TRngThe random-number traits, PseudoRandom or LowDiscrepancy.
- Implements
- Inherited Members
Explicit Interface Implementations
AllowsErrorEstimate
Gets a value indicating whether the random numbers give an error estimate (pseudo-random ones do).
static bool AllowsErrorEstimate { get; }
Returns
MakePathGenerator(StochasticProcess, TimeGrid, IRsg, bool)
A new path generator, QuantLib's path_generator_type, over a time grid.
static IPathGenerator<MonteCarloPath> MakePathGenerator(StochasticProcess process, TimeGrid timeGrid, IRsg generator, bool brownianBridge)
Parameters
processStochasticProcessThe process.
timeGridTimeGridThe time grid.
generatorIRsgThe sequence generator, which the path generator copies.
brownianBridgeboolWhether the draws are ordered by a Brownian bridge.
Returns
- IPathGenerator<MonteCarloPath>
A new path generator.
MakeSequenceGenerator(int, long)
The random-number traits' sequence generator, QuantLib's RNG::make_sequence_generator.
static IRsg MakeSequenceGenerator(int dimension, long seed)
Parameters
Returns
- IRsg
A new generator.