IStatistics.Standardize

Syntax

Standardizedouble(Value: Double; Mean: Double; StandartDeviation: Double): Double;

Parameters

Value. Value to be normalized.

Mean. Arithmetic mean of the distribution.

StandartDeviation. Standard deviation of the distribution. Value must satisfy the following constraint: StandartDeviation > 0.

Description

The Standardize method returns a normalized value for distribution with medium or standard deviation.

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.Standardize(34,21,1.5);
    If st.Status <> 0 Then
        Debug.WriteLine(st.Errors);
    Else
        Debug.WriteLine("Normalized value: " + d0.ToString);
    End If;
End Sub UserProc;

After you have executed this example the console window shows normalized value for distribution:

Unit execution started

Normalized value: 8.66666666666667

Unit execution finished

See also:

IStatistics