ErlangDistribution Type

Generates Erlang distributed random numbers.

            
             Return Erlang distributed random deviates according to:
            
                                  a-1  -bx
                            b (bx)    e
              p   (x) dx = ---------------- dx   for x > 0
               a,b             Gamma(a)
            
                         =  0                    otherwise
            
             The Erlang distribution is a special case of the Gamma distribution
             with integer valued order a.
            
             References:
             see references in:
             W. H. Press, B. P. Flannery, S. A. Teukolsky, W. T. Vetterling,
             Numerical Recipies in C, Cambridge Univ. Press, 1988.

Constructors

Constructor Description

ErlangDistribution()

Full Usage: ErlangDistribution()

ErlangDistribution(gen)

Full Usage: ErlangDistribution(gen)

Parameters:

gen : Generator

ErlangDistribution(order, lambda)

Full Usage: ErlangDistribution(order, lambda)

Parameters:
    order : int
    lambda : float

order : int
lambda : float

ErlangDistribution(order, lambda, ran)

Full Usage: ErlangDistribution(order, lambda, ran)

Parameters:

order : int
lambda : float
ran : Generator

Instance members

Instance member Description

this.Alpha

Full Usage: this.Alpha

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

Call ErlangDistribution.IsValidAlpha to determine whether a value is valid and therefor assignable.

this.CDF

Full Usage: this.CDF

Parameters:
    x : float

Returns: float
Modifiers: abstract

x : float
Returns: float

this.Initialize

Full Usage: this.Initialize

Parameters:
    order : int
    lambda : float

order : int
lambda : float

this.IsValidAlpha

Full Usage: this.IsValidAlpha

Parameters:
    value : int - The value to check.

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

Determines whether the specified value is valid for parameter ErlangDistribution.Alpha.

value : int

The value to check.

Returns: bool

if value is greater than 0; otherwise, .

this.IsValidLambda

Full Usage: this.IsValidLambda

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 ErlangDistribution.Lambda.

value : float

The value to check.

Returns: bool

if value is greater than 0.0; otherwise, .

this.Lambda

Full Usage: this.Lambda

Gets or sets the parameter lambda which is used for generation of erlang distributed random numbers.

Call ErlangDistribution.IsValidLambda to determine whether a value is valid and therefor assignable.

this.Location

Full Usage: this.Location

Returns: float

Returns: float

this.Maximum

Full Usage: this.Maximum

Returns: float
Modifiers: abstract

Gets the maximum possible value of erlang distributed random numbers.

Returns: float

this.Mean

Full Usage: this.Mean

Returns: float
Modifiers: abstract

Gets the mean value of erlang distributed random numbers.

Returns: float

this.Median

Full Usage: this.Median

Returns: float
Modifiers: abstract

Gets the median of erlang distributed random numbers.

Returns: float

this.Minimum

Full Usage: this.Minimum

Returns: float
Modifiers: abstract

Gets the minimum possible value of erlang distributed random numbers.

Returns: float

this.Mode

Full Usage: this.Mode

Returns: float[]
Modifiers: abstract

Gets the mode of erlang distributed random numbers.

Returns: float[]

this.NextDouble

Full Usage: this.NextDouble

Returns: float
Modifiers: abstract

Returns: float

this.Order

Full Usage: this.Order

Returns: int

Returns: int

this.PDF

Full Usage: this.PDF

Parameters:
    x : float

Returns: float
Modifiers: abstract

x : float
Returns: float

this.Quantile

Full Usage: this.Quantile

Parameters:
    p : float

Returns: float
Modifiers: abstract

p : float
Returns: float

this.Variance

Full Usage: this.Variance

Returns: float
Modifiers: abstract

Gets the variance of erlang distributed random numbers.

Returns: float

Static members

Static member Description

ErlangDistribution.CDF(x, A, B)

Full Usage: ErlangDistribution.CDF(x, A, B)

Parameters:
    x : float
    A : float
    B : float

Returns: float

x : float
A : float
B : float
Returns: float

ErlangDistribution.PDF(x, A, B)

Full Usage: ErlangDistribution.PDF(x, A, B)

Parameters:
    x : float
    A : float
    B : float

Returns: float

x : float
A : float
B : float
Returns: float

ErlangDistribution.Quantile(x, A, B)

Full Usage: ErlangDistribution.Quantile(x, A, B)

Parameters:
    x : float
    A : float
    B : float

Returns: float

x : float
A : float
B : float
Returns: float