IStatistics.DispersionP

Syntax

DispersionP(Values: Array): Double;

Parameters

Values. Array of numeric arguments corresponding to population.

Description

The DispersionP method calculates variance for population.

Comments

At the calculation it is assumed that arguments represent the entire population.

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] := 1.6;
    y[01] := 1.7;
    y[02] := 1.8;
    y[03] := 1.9;
    y[04] := 2;
    y[05] := 2.1;
    y[06] := 2.2;
    y[07] := 2.3;
    y[08] := 2.4;
    y[09] := 2.8;
    st := New Statistics.Create;
    d0 := st.DispersionP(y);
    Debug.WriteLine("Variance: " + d0.ToString);
End Sub UserProc;

Executing the example shows variation in the console window:

Unit execution started

Variance: 0.117599999999999

Unit execution finished

See also:

IStatistics | Variance