Class MoroInvCumulativeKnuthGaussianRsg
QuantLib-Python's MoroInvCumulativeKnuthGaussianRsg: InverseCumulativeRsg<TUsg, TIc> over
RandomSequenceGenerator<TRng> and MoroInverseCumulativeNormal, standard
Gaussian pseudo-random sequences.
[WorkingType]
public sealed class MoroInvCumulativeKnuthGaussianRsg : InverseCumulativeRsg<RandomSequenceGenerator<KnuthUniformRng>, MoroInverseCumulativeNormal>, IRsg
- Inheritance
-
MoroInvCumulativeKnuthGaussianRsg
- Implements
- Inherited Members
Remarks
A convenience name: nanoql's own code uses the generic type. A mutable working type, as its base is.
Constructors
MoroInvCumulativeKnuthGaussianRsg(RandomSequenceGenerator<KnuthUniformRng>)
Initializes a new instance of the MoroInvCumulativeKnuthGaussianRsg class with the standard normal inverse cumulative, QuantLib's default construction.
public MoroInvCumulativeKnuthGaussianRsg(RandomSequenceGenerator<KnuthUniformRng> uniformSequenceGenerator)
Parameters
uniformSequenceGeneratorRandomSequenceGenerator<KnuthUniformRng>The uniform sequence generator, which the generator copies.
Exceptions
- ArgumentNullException
uniformSequenceGeneratoris null.
MoroInvCumulativeKnuthGaussianRsg(RandomSequenceGenerator<KnuthUniformRng>, MoroInverseCumulativeNormal)
Initializes a new instance of the MoroInvCumulativeKnuthGaussianRsg class.
public MoroInvCumulativeKnuthGaussianRsg(RandomSequenceGenerator<KnuthUniformRng> uniformSequenceGenerator, MoroInverseCumulativeNormal inverseCumulative)
Parameters
uniformSequenceGeneratorRandomSequenceGenerator<KnuthUniformRng>The uniform sequence generator, which the generator copies.
inverseCumulativeMoroInverseCumulativeNormalThe inverse cumulative distribution.
Exceptions
- ArgumentNullException
uniformSequenceGeneratoris null.
Methods
Clone()
Copies the generator deeply, its uniform sequence generator included: the copy's next draw equals this one's, into its own buffer, and the two change apart.
public override MoroInvCumulativeKnuthGaussianRsg Clone()
Returns
- MoroInvCumulativeKnuthGaussianRsg
The copy.