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 SummaryStatisticsImpl.java
Date Thu, 17 Jun 2004 23:27:52 GMT
psteitz     2004/06/17 16:27:52

  Modified:    math/src/java/org/apache/commons/math/stat/univariate
                        SummaryStatisticsImpl.java
  Log:
  Added missing statistics in toString.
  
  Revision  Changes    Path
  1.5       +8 -5      jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/SummaryStatisticsImpl.java
  
  Index: SummaryStatisticsImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/SummaryStatisticsImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SummaryStatisticsImpl.java	14 Jun 2004 23:26:53 -0000	1.4
  +++ SummaryStatisticsImpl.java	17 Jun 2004 23:27:52 -0000	1.5
  @@ -205,11 +205,14 @@
       public String toString() {
           StringBuffer outBuffer = new StringBuffer();
           outBuffer.append("SummaryStatistics:\n");
  -        outBuffer.append("n: " + n + "\n");
  -        outBuffer.append("min: " + min + "\n");
  -        outBuffer.append("max: " + max + "\n");
  +        outBuffer.append("n: " + getN() + "\n");
  +        outBuffer.append("min: " + getMin() + "\n");
  +        outBuffer.append("max: " + getMax() + "\n");
           outBuffer.append("mean: " + getMean() + "\n");
  -        outBuffer.append("std dev: " + getStandardDeviation() + "\n");
  +        outBuffer.append("geometric mean: " + getGeometricMean() + "\n");
  +        outBuffer.append("variance: " + getVariance() + "\n");
  +        outBuffer.append("sum of squares: " + getSumsq() + "\n");
  +        outBuffer.append("standard deviation: " + getStandardDeviation() + "\n");
           return outBuffer.toString();
       }
   
  
  
  

---------------------------------------------------------------------
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