src/org/kocakosm/pitaya/math/Numbers.java
public static double mean(int... values)
	{
		Parameters.checkCondition(values.length > 0);
		long sum = 0L;
		for (int value : values) {
			sum += value;
		}
		return (double) sum / values.length;
	}
public static double mean(int... values)
	{
		Parameters.checkCondition(values.length > 0);
		long sum = 0L;
		for (int value : values) {
			sum += value;
		}
		return (double) sum / values.length;
	}
Returns the arithmetic mean of the given values. This method is not
subject to overflow.

@param values the values.

@return the arithmetic mean of the given values.

@throws NullPointerException if {@code values} is {@code null}.
@throws IllegalArgumentException if {@code values} is empty.