RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.Mean Function

Returns the average of all values in an array.

Pascal
function Mean(const Data: array of Double): Extended;
C++
Extended Mean(const array of Double Data);

Mean calculates the arithmetic average of all the values in the Data array parameter. In C++, the Data_Size parameter gives the index of the last element of the array (one less than the number of elements). 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!