System.Math.Variance
Delphi
function Variance(const Data: array of Single): Single;
function Variance(const Data: array of Double): Double;
function Variance(const Data: array of Extended): Extended;
C++
extern DELPHI_PACKAGE float __fastcall Variance(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
Calculates statistical sample variance from an array of 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).