Name: mean
Category: Statistics
Description:
Compute the arithmetic mean of a list of values.
Syntax:
mean(a, b, c, ...)
mean(A)
mean(A, dimension)
Examples:
mean(2, 3, 4, 1)
2.5
mean([2, 3, 4, 1])
2.5
mean([2, 5; 4, 3])
3.5
mean([2, 5; 4, 3], 1)
[3.5, 3.5]
mean([2, 5; 4, 3], 2)
IndexError: Index out of range (2 > 1)
mean([1.0, 2.7, 3.2, 4.0])
2.725
See also: max, median, min, prod, std, sum, variance