Show contents 

Stat Assembly > Stat Assembly Interfaces > IStatistics > IStatistics.Weibull

IStatistics.Weibull

Syntax

Weibull(Value: Double; Alpha: Double; Beta: Double; Cumulative: Boolean): Double;

Parameters

Value. The value for which the distribution is to be calculated. Value must satisfy the following constraint: Value >= 0.

Alpha. Distribution shape parameter. This value must satisfy the following constraint: Alpha > 0. If Alpha = 1, the Weibull function returns the exponential distribution:

Beta. Distribution scale parameter. This value must meet the following constraint: Beta 0. If Beta = 1, the Weibull function returns the standard distribution.

Cumulative. defines function form:

Description

The Weibull method returns the Weibull distribution.

Comments

This distribution is used for reliability analysis, for example, for calculating the mean time between failures of a device.

Example

To execute the example, add a link to the Stat system assembly.

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

After you have executed this example the console window shows the Weibull distribution integral function:

Unit execution started

Weibull distribution: 0.120624050633155

Unit execution finished

See also:

IStatistics | Weibull distribution