StatsOne()

<< Click to Display Table of Contents >>

Navigation:  Explain™ Control Language  > Library Routines > Mathematical functions >

StatsOne()

Description

Calculate statistical information on a set of data.

 

The data set can include all of the data in a class DATACOL object, or a subset of the data in a DATACOL object. The calculated statistics are returned as members of a VECTOR.

 

Type

REGULAR FUNCTION

 

Usage

Result = StatsOne (DataCol, FirstPoint, LastPoint)

 

DataCol

DATACOL

The column of data upon which to calculate the statistics.

FirstPoint

INDEX

The first point to include in the data set (Optional).

LastPoint

INDEX

The last point to include in the data set (Optional).

Result

VECTOR

[0] N Sum(1)

[1] Mean Sum(X)/N

[2] StdVar Sum(X–Xm)2/N–1

[3] StdDev sqrt(StdVar)

[4] 1st moment Sum(abs(X–Xm))/N

[5] 2nd moment Sum((X–Xm)2)/N

[6] 3rd moment Sum((X–Xm)3)/N

[7] 4th moment Sum((X–Xm)4)/N

[8] PopVar Sum((X–Xm)2)/N

[9] PopDev sqrt(PopVariance)

[10] RMS sqrt(Sum(X2)/N)

 

Related Topics