Class Burley2020SobolBrownianGenerator
The Brownian generator on Burley's scrambled Sobol sequence for market-model simulations: each path a scrambled Sobol sequence of the factors times the steps, turned into Gaussian variates by the inverse cumulative normal and Brownian-bridged by the base's ordering.
[WorkingType]
public sealed class Burley2020SobolBrownianGenerator : SobolBrownianGeneratorBase
- Inheritance
-
Burley2020SobolBrownianGenerator
- Inherited Members
Remarks
A working type. Both seeds are explicit, in [1, 4294967295], as Burley2020SobolRsg takes them; QuantLib's defaults are 42 and 43.
Constructors
Burley2020SobolBrownianGenerator(int, int, SobolBrownianGeneratorBaseOrdering, long, SobolRsgDirectionIntegers, long)
Initializes a new instance of the Burley2020SobolBrownianGenerator class.
public Burley2020SobolBrownianGenerator(int factors, int steps, SobolBrownianGeneratorBaseOrdering ordering, long seed, SobolRsgDirectionIntegers directionIntegers, long scrambleSeed)
Parameters
factorsintThe number of factors each step draws, at least 1.
stepsintThe number of steps each path draws, at least 1.
orderingSobolBrownianGeneratorBaseOrderingHow the variates are assigned to the factors and steps.
seedlongThe Sobol sequence's seed, in [1, 4294967295].
directionIntegersSobolRsgDirectionIntegersThe Sobol sequence's direction integers.
scrambleSeedlongThe scrambling's seed, in [1, 4294967295].
Exceptions
- ArgumentOutOfRangeException
factorsorstepsis below 1, their product is outside the sequence's dimensions, or the ordering, a seed or the direction integers is out of range.
Methods
NextSequence()
The next sequence of Gaussian variates, of the factors times the steps.
protected override Sample<ReadOnlyMemory<double>> NextSequence()
Returns
- Sample<ReadOnlyMemory<double>>
The sequence and its weight, a view valid until the next draw.