removed extra calculation.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@140971 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e449062da5
commit
41ac4c9203
|
@ -73,9 +73,7 @@ public class GeometricMean extends AbstractStorelessUnivariateStatistic {
|
||||||
*/
|
*/
|
||||||
public double increment(double d) {
|
public double increment(double d) {
|
||||||
n++;
|
n++;
|
||||||
sumLog.increment(d);
|
return Math.exp( sumLog.increment(d) / (double)n );
|
||||||
value = Math.exp( sumLog.increment(d) / (double)n );
|
|
||||||
return value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue