/** * Get the percentage of not-null entries in a {@link List} of {@link Number} values * * @param list the {@link List} of {@link Number} values * @return the percentage of not-null values as a {@link Number} value */ public static Number percentNotNull(List<? extends Number> list) { return percentNotNullBigDecimal(convertNumberToBigDecimal(list)); }
/** * Get the percentage of null entries in a {@link List} of {@link Number} values * * @param list the {@link List} of {@link Number} values * @return the percentage of null values as a {@link Number} value */ public static Number percentNull(List<? extends Number> list) { return percentNullBigDecimal(convertNumberToBigDecimal(list)); }
/** * Get the average of the contents of a {@link List} of {@link Number} values, excluding null entries * * @param list the {@link List} of {@link Number} values * @return the average of the not-null values as a {@link Number} value */ public static Number average(List<? extends Number> list) { return averageBigDecimal(convertNumberToBigDecimal(list)); }
/** * Get the median of the contents of a {@link List} of {@link Number} values, excluding null entries * * @param list the {@link List} of {@link Number} values * @return the median of the not-null values as a {@link Number} value */ public static Number median(List<? extends Number> list) { return medianBigDecimal(convertNumberToBigDecimal(list)); }