commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject cvs commit: jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate StatisticalSummaryValues.java
Date Fri, 02 Jul 2004 06:25:05 GMT
psteitz     2004/07/01 23:25:05

  Modified:    math/src/java/org/apache/commons/math/stat/univariate
                        StatisticalSummaryValues.java
  Log:
  Made fields final.
  
  Revision  Changes    Path
  1.5       +7 -12     jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/StatisticalSummaryValues.java
  
  Index: StatisticalSummaryValues.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/StatisticalSummaryValues.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- StatisticalSummaryValues.java	29 Jun 2004 02:18:22 -0000	1.4
  +++ StatisticalSummaryValues.java	2 Jul 2004 06:25:05 -0000	1.5
  @@ -30,22 +30,22 @@
       static final long serialVersionUID = -5108854841843722536L;
   
       /** The sample mean */
  -    private double mean = Double.NaN;
  +    private final double mean;
       
       /** The sample variance */
  -    private double variance = Double.NaN;
  +    private final double variance;
       
       /** The number of observations in the sample */
  -    private long n = 0;
  +    private final long n;
       
       /** The maximum value */
  -    private double max = Double.NaN;
  +    private final double max;
       
       /** The minimum value */
  -    private double min = Double.NaN;
  +    private final double min;
       
       /** The sum of the sample values */
  -    private double sum = Double.NaN;
  +    private final double sum;
       
       /**
         * Constructor
  @@ -66,11 +66,6 @@
           this.max = max;
           this.min = min;
           this.sum = sum;
  -    }
  -    
  -    /** Private no argument contstructor */
  -    private StatisticalSummaryValues() {
  -        super();
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message