System.Math.Mean
Delphi
function Mean(const Data: array of Single): Single;
function Mean(const Data: array of Double): Double;
function Mean(const Data: array of Extended): Extended;
C++
extern DELPHI_PACKAGE float __fastcall Mean(const float *Data, const int Data_High)/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
説明
配列内のすべての値の平均を返します。
Mean は、Data 配列パラメータに格納されているすべての値の算術平均を計算します。C++ では、Data_High パラメータで、配列の最後の要素のインデックス(要素数-1)を指定します。