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

Sub Main;

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

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

Module execution started

Standard deviation: 5.9295868321494378

Module execution finished

See also:

IStatistics | Standard deviation