double
Mean(
double
[]
values
)
Compute the arithmetic mean of the values.
x
=
x
i
n
i
n
Example
=
Block
{
ShowMean
([14, 2]);
ShowMean
([1, 10]);
ShowMean
([
-
12, 18, 13, 56, 23]);
};
The mean of 14 and 2 is 8
The mean of 1 and 10 is 5.5
The mean of -12, 18, 13, 56 and 23 is 19.6