Click or drag to resize

RandGenLogNormal Class

Class RandGenLogNormal generates random numbers from a lognormal distribution.
Inheritance Hierarchy

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.4
Syntax
public class RandGenLogNormal : RandomNumberGenerator

The RandGenLogNormal type exposes the following members.

Constructors
  NameDescription
Public methodRandGenLogNormal
Constructs a RandGenLogNormal instance with the default underlying normal distribution. The generated deviates will follow a lognormal distribution with default mean of 1.0 and variance of 0.1.
Public methodRandGenLogNormal(Int32)
Constructs a seeded RandGenLogNormal instance with the default underlying normal distribution. The generated deviates will follow a lognormal distribution with default mean of 1.0 and variance of 0.1.
Public methodRandGenLogNormal(RandomNumberGeneratorUniformRandomNumber)
Constructs a random number generator using the given delegate as the underlying uniform random number generator. The generated deviates will follow a lognormal distribution with a mean of 1.0 and variance of 0.1.
Public methodRandGenLogNormal(Double, Double)
Constructs a RandGenLogNormal instance with the default underlying normal distribution. The generated deviates will follow a lognormal distribution with the specified mean and variance.
Public methodRandGenLogNormal(Double, Double, RandomNumberGeneratorUniformRandomNumber)
Constructs a RandGenLogNormal instance using the given delegate as the underlying uniform random number generator. The generated deviates will follow a lognormal distribution with the specified mean and variance.
Public methodRandGenLogNormal(Double, Double, Int32)
Constructs a seeded RandGenLogNormal instance with the default underlying normal distribution. The generated deviates will follow a lognormal distribution with the specified mean and variance.
Top
Properties
  NameDescription
Public propertyMean
Gets and sets the mean of the lognormal distribution.
Public propertyNormalMean
Gets and sets the mean of the underlying normal distribution.
Public propertyNormalVariance
Gets and sets the variance of the underlying normal distribution.
Public propertyUniformDeviateMethod
Gets and sets the delegate method for generating uniform deviates between zero and one.
Public propertyVariance
Gets and sets the variance of the lognormal distribution.
Top
Methods
  NameDescription
Public methodClone
Creates a deep copy of this random number generator.
(Overrides RandomNumberGeneratorClone.)
Public methodFill(Double)
Fills the given array of doubles with random values.
(Overrides RandomNumberGeneratorFill(Double).)
Public methodFill(Single)
Fills the given array of floats with random values.
(Inherited from RandomNumberGenerator.)
Public methodFill(DoubleComplex)
Fills the given array of double-precision complex numbers with random values.
(Overrides RandomNumberGeneratorFill(DoubleComplex).)
Public methodFill(DoubleDataBlock)
Fills the given data block with random values.
(Inherited from RandomNumberGenerator.)
Public methodFill(FloatComplex)
Fills the given array of single-precision complex numbers with random values.
(Inherited from RandomNumberGenerator.)
Public methodNext
Gets the next random deviate.
Public methodNextDouble
Generates a double precision random number.
(Overrides RandomNumberGeneratorNextDouble.)
Public methodNextDoubleComplex
Method for generating a double precision complex number random deviate.
(Overrides RandomNumberGeneratorNextDoubleComplex.)
Public methodNextFloat
Method for generating a single precision random deviate.
(Inherited from RandomNumberGenerator.)
Public methodNextFloatComplex
Method for generating a single precision complex number random deviate.
(Inherited from RandomNumberGenerator.)
Public methodReset
Resets the random number generator using a random seed.
(Inherited from RandomNumberGenerator.)
Public methodReset(Int32)
Resets the underlying normal random number generator with the specified seed.
Top
Fields
  NameDescription
Protected fieldrand_
A delegate method for generating uniform deviates between zero and one.
(Inherited from RandomNumberGenerator.)
Top
Remarks
A lognormal distribution has a normal distribution as its logarithm.
x = e ^ ( normal( mu, sigma ))
See Also