Returns the arithmetic mean of the entries in the specified portion of the input array, or
Double.NaN
if the designated subarray is empty.
Throws IllegalArgumentException
if the array is null.
See {@link Mean} for details on the computing algorithm.
@param values the input array
@param begin index of the first array element to include
@param length the number of elements to include
@return the mean of the values or Double.NaN if length = 0
@throws IllegalArgumentException if the array is null or the array indexparameters are not valid