commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject [2/2] [math] Fixed hidden field warning.
Date Mon, 26 Jan 2015 09:21:23 GMT
Fixed hidden field warning.

Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/f3e1598d
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/f3e1598d
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/f3e1598d

Branch: refs/heads/master
Commit: f3e1598dfded2857a8734ecabf7b46bfb676655d
Parents: e7bf6af
Author: Luc Maisonobe <luc@apache.org>
Authored: Mon Jan 26 10:21:07 2015 +0100
Committer: Luc Maisonobe <luc@apache.org>
Committed: Mon Jan 26 10:21:07 2015 +0100

----------------------------------------------------------------------
 .../apache/commons/math3/stat/descriptive/SummaryStatistics.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/f3e1598d/src/main/java/org/apache/commons/math3/stat/descriptive/SummaryStatistics.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math3/stat/descriptive/SummaryStatistics.java
b/src/main/java/org/apache/commons/math3/stat/descriptive/SummaryStatistics.java
index e10291c..62fee80 100644
--- a/src/main/java/org/apache/commons/math3/stat/descriptive/SummaryStatistics.java
+++ b/src/main/java/org/apache/commons/math3/stat/descriptive/SummaryStatistics.java
@@ -232,8 +232,8 @@ public class SummaryStatistics implements StatisticalSummary, Serializable
{
      * have been added.
      */
     public double getQuadraticMean() {
-        final long n = getN();
-        return n > 0 ? FastMath.sqrt(getSumsq() / n) : Double.NaN;
+        final long size = getN();
+        return size > 0 ? FastMath.sqrt(getSumsq() / size) : Double.NaN;
     }
 
     /**


Mime
View raw message