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

Sub Main;

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

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

Module execution started

Normalized value: 8.6666666666666661

Module execution finished

See also:

IStatistics