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 */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
説明
データ配列内の値の 2 乗和を返します。
SumOfSquares は Data 配列要素値の 2 乗和(Data[0]^2 + Data[1]^2 + Data[2]^2...)を返します。C++ では、Data_Size パラメータは配列 Data 内の最終データ値のインデックス(データ項目数 - 1)を指定します。