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 e10291c34..62fee803e 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; } /**