You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2015/02/17 00:03:25 UTC

[2/3] [math] [MATH-760] Made DescriptiveStatistics#windowSize private. Thanks to sebb.

[MATH-760] Made DescriptiveStatistics#windowSize private. Thanks to sebb.


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

Branch: refs/heads/master
Commit: d0721feadc1e0cae6efa3e0d82f523debc5b8d97
Parents: 07defda
Author: Thomas Neidhart <th...@gmail.com>
Authored: Mon Feb 16 23:50:24 2015 +0100
Committer: Thomas Neidhart <th...@gmail.com>
Committed: Mon Feb 16 23:50:24 2015 +0100

----------------------------------------------------------------------
 src/changes/changes.xml                                           | 3 +++
 .../commons/math4/stat/descriptive/DescriptiveStatistics.java     | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/d0721fea/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 621aab5..79382ba 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -54,6 +54,9 @@ If the output is not quite correct, check for invisible trailing spaces!
     </release>
 
     <release version="4.0" date="XXXX-XX-XX" description="">
+      <action dev="tn" type="update" issue="MATH-760" due-to="sebb">
+        Field "windowSize" in "DescriptiveStatistics" has been made private.
+      </action>
       <action dev="sebb" type="add" issue="MATH-1198">
         Simplified "FastMath#exp(double)" in order to avoid a potential
         Java 1.5 JIT bug when calling with negative infinity as argument.

http://git-wip-us.apache.org/repos/asf/commons-math/blob/d0721fea/src/main/java/org/apache/commons/math4/stat/descriptive/DescriptiveStatistics.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/stat/descriptive/DescriptiveStatistics.java b/src/main/java/org/apache/commons/math4/stat/descriptive/DescriptiveStatistics.java
index b1aa6d5..85f41d6 100644
--- a/src/main/java/org/apache/commons/math4/stat/descriptive/DescriptiveStatistics.java
+++ b/src/main/java/org/apache/commons/math4/stat/descriptive/DescriptiveStatistics.java
@@ -73,7 +73,7 @@ public class DescriptiveStatistics implements StatisticalSummary, Serializable {
     private static final String SET_QUANTILE_METHOD_NAME = "setQuantile";
 
     /** hold the window size **/
-    protected int windowSize = INFINITE_WINDOW;
+    private int windowSize = INFINITE_WINDOW;
 
     /**
      *  Stored data values