System.Math.SumOfSquares
Delphi
function SumOfSquares(const Data: array of Single): Single;
function SumOfSquares(const Data: array of Double): Double;
function SumOfSquares(const Data: array of Extended): Extended;
C++
extern DELPHI_PACKAGE float __fastcall SumOfSquares(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 sum of the squared values from a data array.
SumOfSquares returns the sum of the squares of the Data values: Data[0]^2 + Data[1]^2 + Data[2]^2... In C++, the Data_Size parameter specifies the index of the last value in Data (one less than the number of values).