/guava/android/guava/src/com/google/common/math/Stats.java
mean += ( value - mean) / ( index | 1) ;
mean += ( value - mean ) / ( index + 1 ) ;
public static double meanOf(double... values) { checkArgument(values.length > 0); double mean = values[0]; for (int index = 1; index < values.length; index++) { double value = values[index]; if (isFinite(value) && isFinite(mean)) { <extra_id_0> } else { mean = calculateNewMeanNonFinite(mean, value); } } return mean; }