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 prefailure life of a device.

Example

Sub Main;

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 Main;

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

Module execution started

Weibull distribution: 0.12062405063315529

Module execution finished

See also:

IStatistics | Weibull distribution