Computes the mean value of a numeric array.