RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.Variance Function

Calculates statistical sample variance from an array of data.

Pascal
function Variance(const Data: array of Double): Extended;
C++
Extended Variance(const array of Double Data);

Variance calculates the sample variance of all values in the Data array parameter, using the n-1 method (unbiased). In C++, Data_Size specifies the index of the last value in Data (on less than the number of data values). 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!