Make some private fields final

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@922712 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2010-03-14 01:24:46 +00:00
parent 081b8ca4b0
commit 4a4ec2c71c
2 changed files with 4 additions and 4 deletions

View File

@ -34,13 +34,13 @@ public class VectorialCovariance implements Serializable {
private static final long serialVersionUID = 4118372414238930270L; private static final long serialVersionUID = 4118372414238930270L;
/** Sums for each component. */ /** Sums for each component. */
private double[] sums; private final double[] sums;
/** Sums of products for each component. */ /** Sums of products for each component. */
private double[] productsSums; private final double[] productsSums;
/** Indicator for bias correction. */ /** Indicator for bias correction. */
private boolean isBiasCorrected; private final boolean isBiasCorrected;
/** Number of vectors in the sample. */ /** Number of vectors in the sample. */
private long n; private long n;

View File

@ -32,7 +32,7 @@ public class VectorialMean implements Serializable {
private static final long serialVersionUID = 8223009086481006892L; private static final long serialVersionUID = 8223009086481006892L;
/** Means for each component. */ /** Means for each component. */
private Mean[] means; private final Mean[] means;
/** Constructs a VectorialMean. /** Constructs a VectorialMean.
* @param dimension vectors dimension * @param dimension vectors dimension