NormalDistribution Type

Provides generation of normal distributed random numbers.

The implementation of the NormalDistribution type bases upon information presented on Wikipedia - Normal distribution and the implementation in the Communication Networks Class Library.

             Return normal (Gaussian) distributed random deviates
             with mean "m" and standard deviation  "s" according to the density:
            
                                                       2
                                  1               (x-m)
              p   (x) dx =  ------------  exp( - ------- ) dx
               m,s          sqrt(2 pi) s          2 s*s

Constructors

Constructor Description

NormalDistribution()

Full Usage: NormalDistribution()

Initializes a new instance of the NormalDistribution class, using a StandardGenerator as underlying random number generator.

NormalDistribution(generator)

Full Usage: NormalDistribution(generator)

Parameters:

Initializes a new instance of the NormalDistribution class, using the specified Generator as underlying random number generator.

generator : Generator

A Generator object.

ArgumentNullException generator is NULL ( in Visual Basic).

NormalDistribution(mu, sigma)

Full Usage: NormalDistribution(mu, sigma)

Parameters:
    mu : float - Mean value.
    sigma : float - Standard deviation.

Initializes a new instance of the NormalDistribution class, using the Distribution.DefaultGenerator as underlying random number generator.

mu : float

Mean value.

sigma : float

Standard deviation.

NormalDistribution(mu, sigma, generator)

Full Usage: NormalDistribution(mu, sigma, generator)

Parameters:
    mu : float - Mean value.
    sigma : float - Standard deviation.
    generator : Generator - A Generator object.

Initializes a new instance of the NormalDistribution class, using the specified Generator as underlying random number generator.

mu : float

Mean value.

sigma : float

Standard deviation.

generator : Generator

A Generator object.

ArgumentNullException generator is NULL ( in Visual Basic).

Instance members

Instance member Description

this.CDF

Full Usage: this.CDF

Parameters:
    z : float

Returns: float
Modifiers: abstract

z : float
Returns: float

this.Initialize

Full Usage: this.Initialize

Parameters:
    mu : float
    sigma : float

mu : float
sigma : float

this.IsValidMu

Full Usage: this.IsValidMu

Parameters:
    value : float - The value to check.

Returns: bool .

Determines whether the specified value is valid for parameter NormalDistribution.Mu.

value : float

The value to check.

Returns: bool

.

this.IsValidSigma

Full Usage: this.IsValidSigma

Parameters:
    value : float - The value to check.

Returns: bool if value is greater than 0.0; otherwise, .

Determines whether the specified value is valid for parameter NormalDistribution.Sigma.

value : float

The value to check.

Returns: bool

if value is greater than 0.0; otherwise, .

this.Maximum

Full Usage: this.Maximum

Returns: float
Modifiers: abstract

Gets the maximum possible value of normal distributed random numbers.

Returns: float

this.Mean

Full Usage: this.Mean

Returns: float
Modifiers: abstract

Gets the mean value of normal distributed random numbers.

Returns: float

this.Median

Full Usage: this.Median

Returns: float
Modifiers: abstract

Gets the median of normal distributed random numbers.

Returns: float

this.Minimum

Full Usage: this.Minimum

Returns: float
Modifiers: abstract

Gets the minimum possible value of normal distributed random numbers.

Returns: float

this.Mode

Full Usage: this.Mode

Returns: float[]
Modifiers: abstract

Gets the mode of normal distributed random numbers.

Returns: float[]

this.Mu

Full Usage: this.Mu

Gets or sets the parameter mu which is used for generation of normal distributed random numbers.

Call NormalDistribution.IsValidMu to determine whether a value is valid and therefor assignable.

this.NextDouble

Full Usage: this.NextDouble

Returns: float A normal distributed double-precision floating point number.
Modifiers: abstract

Returns a normal distributed floating point random number.

Returns: float

A normal distributed double-precision floating point number.

this.PDF

Full Usage: this.PDF

Parameters:
    z : float

Returns: float
Modifiers: abstract

z : float
Returns: float

this.Quantile

Full Usage: this.Quantile

Parameters:
    p : float

Returns: float
Modifiers: abstract

p : float
Returns: float

this.Sigma

Full Usage: this.Sigma

Gets or sets the parameter sigma which is used for generation of normal distributed random numbers.

Call NormalDistribution.IsValidSigma to determine whether a value is valid and therefor assignable.

this.Variance

Full Usage: this.Variance

Returns: float
Modifiers: abstract

Gets the variance of normal distributed random numbers.

Returns: float

Static members

Static member Description

NormalDistribution.CDF(z, m, s)

Full Usage: NormalDistribution.CDF(z, m, s)

Parameters:
    z : float
    m : float
    s : float

Returns: float

z : float
m : float
s : float
Returns: float

NormalDistribution.PDF(z, m, s)

Full Usage: NormalDistribution.PDF(z, m, s)

Parameters:
    z : float
    m : float
    s : float

Returns: float

z : float
m : float
s : float
Returns: float

NormalDistribution.Quantile(p, m, s)

Full Usage: NormalDistribution.Quantile(p, m, s)

Parameters:
    p : float
    m : float
    s : float

Returns: float

p : float
m : float
s : float
Returns: float