commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r922712 - in /commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/moment: VectorialCovariance.java VectorialMean.java
Date Sun, 14 Mar 2010 01:24:47 GMT
Author: sebb
Date: Sun Mar 14 01:24:46 2010
New Revision: 922712

URL: http://svn.apache.org/viewvc?rev=922712&view=rev
Log:
Make some private fields final

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/moment/VectorialCovariance.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/moment/VectorialMean.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/moment/VectorialCovariance.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/moment/VectorialCovariance.java?rev=922712&r1=922711&r2=922712&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/moment/VectorialCovariance.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/moment/VectorialCovariance.java
Sun Mar 14 01:24:46 2010
@@ -34,13 +34,13 @@ public class VectorialCovariance impleme
     private static final long serialVersionUID = 4118372414238930270L;
 
     /** Sums for each component. */
-    private double[] sums;
+    private final double[] sums;
 
     /** Sums of products for each component. */
-    private double[] productsSums;
+    private final double[] productsSums;
 
     /** Indicator for bias correction. */
-    private boolean isBiasCorrected;
+    private final boolean isBiasCorrected;
 
     /** Number of vectors in the sample. */
     private long n;

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/moment/VectorialMean.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/moment/VectorialMean.java?rev=922712&r1=922711&r2=922712&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/moment/VectorialMean.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/moment/VectorialMean.java
Sun Mar 14 01:24:46 2010
@@ -32,7 +32,7 @@ public class VectorialMean implements Se
     private static final long serialVersionUID = 8223009086481006892L;
 
     /** Means for each component. */
-    private Mean[] means;
+    private final Mean[] means;
 
     /** Constructs a VectorialMean.
      * @param dimension vectors dimension



Mime
View raw message