/** * Sum * Provides overflow protection. * @param values values in int * @return sum */ public static int sum( int[] values, int length ) { return sum( values, 0, length); }
/** * Sum * Provides overflow protection. * @param values values in int * @return sum */ public static int sum( int[] values ) { return sum( values, 0, values.length); }
/** * Sum * Provides overflow protection. * @param values values in int * @return sum */ public static int sum( int[] values ) { return sum( values, 0, values.length); }
/** * Sum * Provides overflow protection. * @param values values in int * @return sum */ public static int sum( int[] values, int length ) { return sum( values, 0, length); }
/** * Sums the values with bounds checking. * @return sum */ public int sum() { return Int.sum(values, end); }
private static double mean( Collection<?> inputList, String propertyPath ) { double mean = sum(inputList, propertyPath)/inputList.size(); return Math.round(mean); }
private static double mean( Collection<?> inputList, String propertyPath ) { double mean = sum(inputList, propertyPath)/inputList.size(); return Math.round(mean); }