IStatistics.ExponDist

Syntax

ExponDist(Value: Double; Lambda: Double; Cumulative: Boolean): Double;

Parameters

Value. Function value. This value must meet the following constraint: Value >= 0.

Lambda. Parameter value. This value must meet the following constraint: Lambda > 0.

Cumulative. Boolean value which indicates what form of exponential function should be used. If this attribute is True, the function ExponDist returns integral distribution function; if this parameter is False distribution density function is returned.

Description

The ExponDist method returns an exponential distribution.

Comments

The function is used to model time delays between events.

Example

Sub UserProc;
Var
st: Statistics;
d0: Double;
Begin
    st := New Statistics.Create;
    d0 := st.ExponDist(0.210True);
    If st.Status <> 0 Then
        Debug.WriteLine(st.Errors);
    Else
        Debug.WriteLine("Exponential distribution: " + d0.ToString);
    End If;
End Sub UserProc;

Executing this example shows a distribution function in the console window:

Module execution started

Exponential distribution: 0.8646647167633873

Module execution finished

See also:

IStatistics | Exponential distribution