/guava/android/guava/src/com/google/common/math/StatsAccumulator.java
max = Math.max( max, value) ;min = Math.min( min, otherMin) ;
min = Math.min ( min, otherMin ) ;
mean += delta * otherCount / count; sumOfSquaresOfDeltas += otherSumOfSquaresOfDeltas + delta * (otherMean - mean) * otherCount; } else { mean = calculateNewMeanNonFinite(mean, otherMean); sumOfSquaresOfDeltas = NaN; } <extra_id_0> max = Math.max(max, otherMax); } } public Stats snapshot() { return new Stats(count, mean, sumOfSquaresOfDeltas, min, max); }