Class BoxMullerLecuyerGaussianRng
QuantLib-Python's BoxMullerLecuyerGaussianRng: BoxMullerGaussianRng<TRng> over
LecuyerUniformRng, standard Gaussian deviates.
[WorkingType]
public sealed class BoxMullerLecuyerGaussianRng : BoxMullerGaussianRng<LecuyerUniformRng>, IRng
- Inheritance
-
BoxMullerLecuyerGaussianRng
- Implements
- Inherited Members
Remarks
A convenience name: nanoql's own code uses the generic type. A mutable working type, as its base is.
Constructors
BoxMullerLecuyerGaussianRng(LecuyerUniformRng)
Initializes a new instance of the BoxMullerLecuyerGaussianRng class.
public BoxMullerLecuyerGaussianRng(LecuyerUniformRng uniformGenerator)
Parameters
uniformGeneratorLecuyerUniformRngThe uniform generator, which the generator copies.
Exceptions
- ArgumentNullException
uniformGeneratoris null.
Methods
Clone()
Copies the generator deeply, its uniform generator included: the copy's next draw equals this one's, and the two change apart.
public override BoxMullerLecuyerGaussianRng Clone()
Returns
- BoxMullerLecuyerGaussianRng
The copy.