Standardizedouble(Value: Double; Mean: Double; StandartDeviation: Double): Double;
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.
The Standardize method returns a normalized value for distribution with medium or standard deviation.
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: