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 */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
Description
Renvoie la moyenne des valeurs d'un tableau.
Mean calcule la moyenne arithmétique des valeurs du paramètre tableau Data. Dans C++, le paramètre Data_High donne l'indice du dernier élément du tableau (nombre d'éléments moins un).