psteitz     2004/07/21 19:29:21

  Modified:    math/src/java/org/apache/commons/math/stat/univariate
                        DescriptiveStatistics.java
  Log:
  Fixed typo in toString(), added median.
  
  Revision  Changes    Path
  1.10      +7 -5      
jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/DescriptiveStatistics.java
  
  Index: DescriptiveStatistics.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/DescriptiveStatistics.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- DescriptiveStatistics.java        10 Jul 2004 16:04:47 -0000      1.9
  +++ DescriptiveStatistics.java        22 Jul 2004 02:29:21 -0000      1.10
  @@ -268,19 +268,21 @@
       }
       
       /**
  -     * Generates a text report displaying
  -     * univariate statistics from values that
  -     * have been added.
  +     * Generates a text report displaying univariate statistics from values
  +     * that have been added.  Each statistic is displayed on a separate
  +     * line.
  +     * 
        * @return String with line feeds displaying statistics
        */
       public String toString() {
           StringBuffer outBuffer = new StringBuffer();
  -        outBuffer.append("UnivariateImpl:\n");
  +        outBuffer.append("DescriptiveStatistics:\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("median: " + getPercentile(50) + "\n");
           outBuffer.append("skewness: " + getSkewness() + "\n");
           outBuffer.append("kurtosis: " + getKurtosis() + "\n");
           return outBuffer.toString();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to