GeometricDistribution Type

Provides generation of geometric distributed random numbers. This is variant A, which denotes the probability that with a number of n trials one has the first success (so the lowest value is 1).

The geometric distribution generates only discrete numbers.
The implementation of the GeometricDistribution type bases upon information presented on Wikipedia - Geometric distribution and the implementation in the Communication Networks Class Library.
Please note that the geometric distribution provided by Mathematica 5.1 is variant_B: the probability that n failed trials occur before first success (so the lowest value is 0 there).

Constructors

Constructor Description

GeometricDistribution()

Full Usage: GeometricDistribution()

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

GeometricDistribution(generator)

Full Usage: GeometricDistribution(generator)

Parameters:

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

generator : Generator

A Generator object.

ArgumentNullException generator is NULL ( in Visual Basic).

GeometricDistribution(probability)

Full Usage: GeometricDistribution(probability)

Parameters:
    probability : float

probability : float

GeometricDistribution(probability, generator)

Full Usage: GeometricDistribution(probability, generator)

Parameters:

probability : float
generator : Generator

Instance members

Instance member Description

this.CDF

Full Usage: this.CDF

Parameters:
    x : float

Returns: float
Modifiers: abstract

x : float
Returns: float

this.Initialize

Full Usage: this.Initialize

Parameters:
    probability : float

probability : float

this.IsValidProbability

Full Usage: this.IsValidProbability

Parameters:
    value : float - The value to check.

Returns: bool if value is greater than 0.0, and less than or equal to 1.0; otherwise, .

Determines whether the specified value is valid for parameter GeometricDistribution.Probability.

value : float

The value to check.

Returns: bool

if value is greater than 0.0, and less than or equal to 1.0; otherwise, .

this.Maximum

Full Usage: this.Maximum

Returns: float
Modifiers: abstract

Gets the maximum possible value of geometric distributed random numbers.

Returns: float

this.Mean

Full Usage: this.Mean

Returns: float
Modifiers: abstract

Gets the mean value of geometric distributed random numbers.

Returns: float

this.Median

Full Usage: this.Median

Returns: float
Modifiers: abstract

Gets the median of geometric distributed random numbers.

Returns: float

this.Minimum

Full Usage: this.Minimum

Returns: float
Modifiers: abstract

Gets the minimum possible value of geometric distributed random numbers.

Returns: float

this.Mode

Full Usage: this.Mode

Returns: float[]
Modifiers: abstract

Gets the mode of geometric distributed random numbers.

Returns: float[]

this.Next

Full Usage: this.Next

Returns: int A geometric distributed 32-bit signed integer.

Returns a geometric distributed random number.

Returns: int

A geometric distributed 32-bit signed integer.

this.NextDouble

Full Usage: this.NextDouble

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

Returns a geometric distributed floating point random number.

Returns: float

A geometric distributed double-precision floating point number.

this.PDF

Full Usage: this.PDF

Parameters:
    x : float

Returns: float
Modifiers: abstract

x : float
Returns: float

this.Probability

Full Usage: this.Probability

Gets or sets the parameter alpha which is used for generation of geometric distributed random numbers.

Call GeometricDistribution.IsValidProbability to determine whether a value is valid and therefor assignable.

this.Variance

Full Usage: this.Variance

Returns: float
Modifiers: abstract

Gets the variance of geometric distributed random numbers.

Returns: float

Static members

Static member Description

GeometricDistribution.CDF(x, p)

Full Usage: GeometricDistribution.CDF(x, p)

Parameters:
    x : float
    p : float

Returns: float

x : float
p : float
Returns: float

GeometricDistribution.PDF(x, p)

Full Usage: GeometricDistribution.PDF(x, p)

Parameters:
    x : float
    p : float

Returns: float

x : float
p : float
Returns: float