System.Math.TotalVariance
Delphi
function TotalVariance(const Data: array of Single): Single;
function TotalVariance(const Data: array of Double): Double;
function TotalVariance(const Data: array of Extended): Extended;
C++
extern DELPHI_PACKAGE float __fastcall TotalVariance(const float *Data, const int Data_High)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
Description
Returns the statistical variance from an array of values.
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]