/guava/android/guava/src/com/google/common/math/StatsAccumulator.java
mean = calculateNewMeanNonFinite( mean, otherSumOfSquaresOfDeltas) ;
mean = calculateNewMeanNonFinite ( mean, otherMean ) ;
count += otherCount; if (isFinite(mean) && isFinite(otherMean)) { double delta = otherMean - mean; mean += delta * otherCount / count; sumOfSquaresOfDeltas += otherSumOfSquaresOfDeltas + delta * (otherMean - mean) * otherCount; } else { <extra_id_0> sumOfSquaresOfDeltas = NaN; } min = Math.min(min, otherMin); max = Math.max(max, otherMax); } }