Appearance
Calculate the arithmetic mean (average) of an array.
data
The mean value, or NaN if array is empty