diff --git a/src/java/org/apache/commons/math/stat/univariate/moment/GeometricMean.java b/src/java/org/apache/commons/math/stat/univariate/moment/GeometricMean.java index c9159d0e0..e9f14b987 100644 --- a/src/java/org/apache/commons/math/stat/univariate/moment/GeometricMean.java +++ b/src/java/org/apache/commons/math/stat/univariate/moment/GeometricMean.java @@ -73,9 +73,7 @@ public class GeometricMean extends AbstractStorelessUnivariateStatistic { */ public double increment(double d) { n++; - sumLog.increment(d); - value = Math.exp( sumLog.increment(d) / (double)n ); - return value; + return Math.exp( sumLog.increment(d) / (double)n ); } /**