﻿RandGenExponential Class

# RandGenExponential Class

Class RandGenExponential generates random numbers from an exponential distribution.
Inheritance Hierarchy
SystemObject
CenterSpace.NMath.CoreRandomNumberGenerator
CenterSpace.NMath.CoreRandGenExponential

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

The RandGenExponential type exposes the following members.

Constructors
NameDescription
RandGenExponential Constructs a random number generator using a RandGenMTwist as the underlying uniform random number generator. Generated random numbers will follow an exponential distribution with lambda equal 1.
RandGenExponential(Double) Constructs a random number generator using a RandGenMTwist as the underlying uniform random number generator. Generated random numbers will follow an exponential distribution with the specified lambda.
RandGenExponential(Int32) Constructs a random number generator using a seeded RandGenMTwist as the underlying uniform random number generator. Generated random numbers will follow an exponential distribution with lambda equal 1.
RandGenExponential(RandomNumberGeneratorUniformRandomNumber) Constructs a random number generator using the given delegate as the underlying uniform random number generator. Generated random numbers will follow an exponential distribution with lambda equal 1.
RandGenExponential(Double, RandomNumberGeneratorUniformRandomNumber) Constructs a random number generator using the given delegate as the underlying uniform random number generator. Generated random numbers will follow an exponential distribution with the specified lambda.
RandGenExponential(Double, Int32) Constructs a random number generator using a seeded RandGenMTwist as the underlying uniform random number generator. Generated random numbers will follow an exponential distribution with the specified lambda.
Top
Properties
NameDescription
Lambda Gets and sets the lambda of the exponential distribution.
UniformDeviateMethod Gets and sets the delegate method for generating uniform deviates between zero and one.
(Inherited from RandomNumberGenerator)
Top
Methods
NameDescription
Clone Creates a deep copy of this random number generator.
(Overrides RandomNumberGeneratorClone)
Fill(Double) Fills the given array of doubles with random values.
(Overrides RandomNumberGeneratorFill(Double))
Fill(DoubleComplex) Fills the given array of double-precision complex numbers with random values.
(Overrides RandomNumberGeneratorFill(DoubleComplex))
Fill(DoubleDataBlock) Fills the given data block with random values.
(Inherited from RandomNumberGenerator)
Fill(FloatComplex) Fills the given array of single-precision complex numbers with random values.
(Inherited from RandomNumberGenerator)
Fill(Single) Fills the given array of floats with random values.
(Inherited from RandomNumberGenerator)
Next Generates a random number.
NextDouble Generates a double precision random number.
(Overrides RandomNumberGeneratorNextDouble)
NextDoubleComplex Method for generating a double precision complex number random deviate.
(Overrides RandomNumberGeneratorNextDoubleComplex)
NextFloat Method for generating a single precision random deviate.
(Inherited from RandomNumberGenerator)
NextFloatComplex Method for generating a single precision complex number random deviate.
(Inherited from RandomNumberGenerator)
Reset Resets the random number generator using a random seed.
(Inherited from RandomNumberGenerator)
Reset(Int32) Resets the random number generator with the specified seed.
(Inherited from RandomNumberGenerator)
Top
Fields
NameDescription
rand_ A delegate method for generating uniform deviates between zero and one.
(Inherited from RandomNumberGenerator)
Top
Remarks
A random variable, W, is said to have an exponential distribution if it as a probability density function g(w) = lambda*exp(-lambda*w), where lambda > 0. The mean of an exponential distribution is 1/lambda, and the variance is 1/lambda*lambda.