表示: Delphi
C++
表示設定
System.Math.SumOfSquares
提供:XE2 API Documentation
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 PACKAGE float __fastcall SumOfSquares(float const *Data, const int Data_Size)/* 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)を指定します。