List of utility methods to do BigInteger Average
BigInteger | average(BigInteger... integers) Returns the average or mean from the given list of integer numbers. BigInteger result = null; if (integers != null) { int length = 0; for (BigInteger integer : integers) { if (integer != null) { if (result == null) { result = integer; } else { ... |
BigInteger | average(BigInteger... values) Computes the average of an array of BigIntegers (ignoring null values). int count = 0; BigInteger total = BigInteger.ZERO; for (BigInteger value : values) { if (value == null) { continue; count++; total = total.add(value); ... |