Show contents 

Stat Assembly > Stat Assembly Interfaces > IStatistics > IStatistics.StDevP

IStatistics.StDevP

Syntax

StDevP(Values: Array): Double;

Parameters

Values. Array of data that form the general population.

Description

The StDevP method calculates standard deviation of the population.

Comments

The standard deviation is a measure showing how widely data points are spread relative to the mean. Standard deviation is calculated using shifted or n method.

Example

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

Sub UserProc;
Var
    st: Statistics;
    d0: Double;
    y: Array Of Double;
Begin
    y := New Double[10];
    y[00] := 6;
    y[01] := 17;
    y[02] := 9;
    y[03] := 15;
    y[04] := 21;
    y[05] := 24;
    y[06] := 20;
    y[07] := 21;
    y[08] := 14;
    y[09] := 25;
    st := New Statistics.Create;
    d0 := st.StDevP(y);
    Debug.WriteLine("Standard deviation: " + d0.ToString);
End Sub UserProc;

Executing the example shows the standard deviation value in the console window:

Unit execution started

Standard deviation: 5.92958683214944

Unit execution finished

See also:

IStatistics | Standard deviation