RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.TotalVariance Function

Returns the statistical variance from an array of values.

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

Math

TotalVariance returns the sum of the squares of the difference between each Data value and the mean of the data values. 

Total Variance: SUM(i=1,N)[(X(i) - Mean)**2] 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!