Calculates the mean (average) of an array of numbers.
The array of numbers.
The mean of the array. If the array is empty, returns NaN.
Calculates the mean (average) of an array of numbers.