commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brentwor...@apache.org
Subject cvs commit: jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate DescriptiveStatisticsImpl.java
Date Mon, 26 Apr 2004 19:15:49 GMT
brentworden    2004/04/26 12:15:48

  Modified:    math/src/java/org/apache/commons/math/analysis
                        NewtonSolver.java
               math/src/java/org/apache/commons/math/stat/univariate/summary
                        Sum.java SumOfLogs.java SumOfSquares.java
                        Product.java
               math/src/java/org/apache/commons/math/distribution
                        NormalDistribution.java
                        HypergeometricDistribution.java
                        GammaDistribution.java ChiSquaredDistribution.java
                        TDistribution.java ExponentialDistribution.java
                        FDistribution.java BinomialDistribution.java
               math/src/java/org/apache/commons/math/stat/univariate/rank
                        Median.java Max.java Percentile.java Min.java
               math/src/java/org/apache/commons/math/random
                        EmpiricalDistributionImpl.java
               math/src/java/org/apache/commons/math/stat/univariate
                        DescriptiveStatisticsImpl.java
  Log:
  Touched up the javadoc comments.
  
  Revision  Changes    Path
  1.2       +2 -2      jakarta-commons/math/src/java/org/apache/commons/math/analysis/NewtonSolver.java
  
  Index: NewtonSolver.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/analysis/NewtonSolver.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NewtonSolver.java	8 Apr 2004 21:19:17 -0000	1.1
  +++ NewtonSolver.java	26 Apr 2004 19:15:48 -0000	1.2
  @@ -22,7 +22,7 @@
   import org.apache.commons.math.MathException;
   
   /**
  - * Implements <a href="http://mathworld.wolfram.com/NewtonsMethod.html">\
  + * Implements <a href="http://mathworld.wolfram.com/NewtonsMethod.html">
    * Newton's Method</a> for finding zeros of real univariate functions. This
    * algorithm will find only one zero in the given interval.  The function should
    * be continuous but not necessarily smooth.
  
  
  
  1.18      +3 -1      jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/summary/Sum.java
  
  Index: Sum.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/summary/Sum.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- Sum.java	4 Mar 2004 04:25:09 -0000	1.17
  +++ Sum.java	26 Apr 2004 19:15:48 -0000	1.18
  @@ -20,6 +20,8 @@
   import org.apache.commons.math.stat.univariate.AbstractStorelessUnivariateStatistic;
   
   /**
  + * The sum of the values that have been added to Univariate.
  + * 
    * @version $Revision$ $Date$
    */
   public class Sum extends AbstractStorelessUnivariateStatistic implements Serializable {
  
  
  
  1.16      +3 -1      jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/summary/SumOfLogs.java
  
  Index: SumOfLogs.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/summary/SumOfLogs.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- SumOfLogs.java	4 Mar 2004 04:25:09 -0000	1.15
  +++ SumOfLogs.java	26 Apr 2004 19:15:48 -0000	1.16
  @@ -26,6 +26,8 @@
       .AbstractStorelessUnivariateStatistic;
   
   /**
  + * Returns the sum of the natural logs for this collection of values.
  + * 
    * @version $Revision$ $Date$
    */
   public class SumOfLogs extends AbstractStorelessUnivariateStatistic implements Serializable
{
  
  
  
  1.16      +3 -1      jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/summary/SumOfSquares.java
  
  Index: SumOfSquares.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/summary/SumOfSquares.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- SumOfSquares.java	4 Mar 2004 04:25:09 -0000	1.15
  +++ SumOfSquares.java	26 Apr 2004 19:15:48 -0000	1.16
  @@ -26,6 +26,8 @@
       .AbstractStorelessUnivariateStatistic;
   
   /**
  + * Returns the sum of the squares of the available values.
  + * 
    * @version $Revision$ $Date$
    */
   public class SumOfSquares extends AbstractStorelessUnivariateStatistic implements Serializable
{
  
  
  
  1.16      +3 -1      jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/summary/Product.java
  
  Index: Product.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/summary/Product.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Product.java	4 Mar 2004 04:25:09 -0000	1.15
  +++ Product.java	26 Apr 2004 19:15:48 -0000	1.16
  @@ -26,6 +26,8 @@
       .AbstractStorelessUnivariateStatistic;
   
   /**
  + * Returns the product for this collection of values.
  + * 
    * @version $Revision$ $Date$
    */
   public class Product extends AbstractStorelessUnivariateStatistic implements Serializable
{
  
  
  
  1.4       +3 -0      jakarta-commons/math/src/java/org/apache/commons/math/distribution/NormalDistribution.java
  
  Index: NormalDistribution.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/NormalDistribution.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- NormalDistribution.java	21 Feb 2004 21:35:14 -0000	1.3
  +++ NormalDistribution.java	26 Apr 2004 19:15:48 -0000	1.4
  @@ -21,12 +21,15 @@
    * Instances of NormalDistribution objects should be created using
    * {@link DistributionFactory#createNormalDistribution(double, double)}.<p>
    * 
  + * <p>
    * References:<p>
    * <ul>
    * <li><a href="http://mathworld.wolfram.com/NormalDistribution.html">
    * Normal Distribution</a></li>
    * </ul>
  + * </p>
    * 
  + * @version $Revision$ $Date$
    */
   public interface NormalDistribution extends ContinuousDistribution {
   	/**
  
  
  
  1.9       +3 -1      jakarta-commons/math/src/java/org/apache/commons/math/distribution/HypergeometricDistribution.java
  
  Index: HypergeometricDistribution.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/HypergeometricDistribution.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- HypergeometricDistribution.java	21 Feb 2004 21:35:14 -0000	1.8
  +++ HypergeometricDistribution.java	26 Apr 2004 19:15:48 -0000	1.9
  @@ -22,11 +22,13 @@
    * Instances of HypergeometricDistribution objects should be created using
    * {@link DistributionFactory#createHypergeometricDistribution(int, int, int)}.
    * 
  + * <p>
    * References:
    * <ul>
    * <li><a href="http://mathworld.wolfram.com/HypergeometricDistribution.html">
    * Hypergeometric Distribution</a></li>
    * </ul>
  + * </p>
    * 
    * @version $Revision$ $Date$
    */
  
  
  
  1.14      +4 -2      jakarta-commons/math/src/java/org/apache/commons/math/distribution/GammaDistribution.java
  
  Index: GammaDistribution.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/GammaDistribution.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- GammaDistribution.java	21 Feb 2004 21:35:14 -0000	1.13
  +++ GammaDistribution.java	26 Apr 2004 19:15:48 -0000	1.14
  @@ -21,12 +21,14 @@
    * Instances of GammaDistribution objects should be created using
    * {@link DistributionFactory#createGammaDistribution(double,double)}.
    * 
  + * <p>
    * References:
    * <ul>
    * <li><a href="http://mathworld.wolfram.com/GammaDistribution.html">
    * Gamma Distribution</a></li>
    * </ul>
  - *  
  + * </p>
  + * 
    * @version $Revision$ $Date$
    */
   public interface GammaDistribution extends ContinuousDistribution {
  
  
  
  1.13      +3 -1      jakarta-commons/math/src/java/org/apache/commons/math/distribution/ChiSquaredDistribution.java
  
  Index: ChiSquaredDistribution.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/ChiSquaredDistribution.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ChiSquaredDistribution.java	21 Feb 2004 21:35:14 -0000	1.12
  +++ ChiSquaredDistribution.java	26 Apr 2004 19:15:48 -0000	1.13
  @@ -21,11 +21,13 @@
    * Instances of ChiSquaredDistribution objects should be created using
    * {@link DistributionFactory#createChiSquareDistribution(double)}.
    * 
  + * <p>
    * References:
    * <ul>
    * <li><a href="http://mathworld.wolfram.com/Chi-SquaredDistribution.html">
    * Chi-Squared Distribution</a></li>
    * </ul>
  + * </p>
    * 
    * @version $Revision$ $Date$
    */
  
  
  
  1.11      +3 -1      jakarta-commons/math/src/java/org/apache/commons/math/distribution/TDistribution.java
  
  Index: TDistribution.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/TDistribution.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- TDistribution.java	21 Feb 2004 21:35:14 -0000	1.10
  +++ TDistribution.java	26 Apr 2004 19:15:48 -0000	1.11
  @@ -21,11 +21,13 @@
    * Instances of TDistribution objects should be created using
    * {@link DistributionFactory#createTDistribution(double)}
    * 
  + * <p>
    * References:
    * <ul>
    * <li><a href="http://mathworld.wolfram.com/Studentst-Distribution.html">
    * Student's t-Distribution</a></li>
    * </ul>
  + * </p>
    * 
    * @version $Revision$ $Date$
    */
  
  
  
  1.11      +4 -1      jakarta-commons/math/src/java/org/apache/commons/math/distribution/ExponentialDistribution.java
  
  Index: ExponentialDistribution.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/ExponentialDistribution.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ExponentialDistribution.java	21 Feb 2004 21:35:14 -0000	1.10
  +++ ExponentialDistribution.java	26 Apr 2004 19:15:48 -0000	1.11
  @@ -21,10 +21,13 @@
    * Instances of ExponentialDistribution objects should be created using
    * {@link DistributionFactory#createExponentialDistribution(double)}.
    * 
  + * <p>
    * References:
    * <ul>
    * <li><a href="http://mathworld.wolfram.com/ExponentialDistribution.html">
    * Exponential Distribution</a></li>
  + * </ul>
  + * </p>
    * 
    * @version $Revision$ $Date$
    */
  
  
  
  1.12      +3 -1      jakarta-commons/math/src/java/org/apache/commons/math/distribution/FDistribution.java
  
  Index: FDistribution.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/FDistribution.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- FDistribution.java	21 Feb 2004 21:35:14 -0000	1.11
  +++ FDistribution.java	26 Apr 2004 19:15:48 -0000	1.12
  @@ -21,11 +21,13 @@
    * Instances of FDistribution objects should be created using
    * {@link DistributionFactory#createFDistribution(double,double)}.
    * 
  + * <p>
    * References:
    * <ul>
    * <li><a href="http://mathworld.wolfram.com/F-Distribution.html">
    * F-Distribution</a></li>
    * </ul>
  + * </p>
    * 
    * @version $Revision$ $Date$
    */
  
  
  
  1.10      +4 -2      jakarta-commons/math/src/java/org/apache/commons/math/distribution/BinomialDistribution.java
  
  Index: BinomialDistribution.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/BinomialDistribution.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- BinomialDistribution.java	21 Feb 2004 21:35:14 -0000	1.9
  +++ BinomialDistribution.java	26 Apr 2004 19:15:48 -0000	1.10
  @@ -17,15 +17,17 @@
   
   /**
    * The Binomial Distribution.
  - * 
  + *
    * Instances of BinomialDistribution objects should be created using
    * {@link DistributionFactory#createBinomialDistribution(int, double)}.
    * 
  + * <p>
    * References:
    * <ul>
    * <li><a href="http://mathworld.wolfram.com/BinomialDistribution.html">
    * Binomial Distribution</a></li>
    * </ul>
  + * </p>
    * 
    * @version $Revision$ $Date$
    */
  
  
  
  1.12      +5 -2      jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/rank/Median.java
  
  Index: Median.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/rank/Median.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Median.java	21 Feb 2004 21:35:16 -0000	1.11
  +++ Median.java	26 Apr 2004 19:15:48 -0000	1.12
  @@ -19,6 +19,9 @@
   
   
   /**
  + * Returns the <a href="http://www.xycoon.com/median_2.htm">median</a> of the
  + * available values.
  + * 
    * @version $Revision$ $Date$
    */
   public class Median extends Percentile implements Serializable {
  @@ -26,7 +29,7 @@
       static final long serialVersionUID = -3961477041290915687L;    
   
       /**
  -     *
  +     * Default constructor.
        */
       public Median() {
           super(50.0);
  
  
  
  1.15      +5 -1      jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/rank/Max.java
  
  Index: Max.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/rank/Max.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Max.java	21 Feb 2004 21:35:16 -0000	1.14
  +++ Max.java	26 Apr 2004 19:15:48 -0000	1.15
  @@ -26,6 +26,8 @@
       .AbstractStorelessUnivariateStatistic;
   
   /**
  + * Returns the maximum of the available values.
  + * 
    * @version $Revision$ $Date$
    */
   public class Max extends AbstractStorelessUnivariateStatistic implements Serializable {
  @@ -69,6 +71,8 @@
       }
       
       /**
  +     * Returns the maximum of the available values.
  +     * 
        * @see org.apache.commons.math.stat.univariate.UnivariateStatistic#evaluate(double[],
int, int)
        */
       public double evaluate(
  
  
  
  1.17      +2 -3      jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/rank/Percentile.java
  
  Index: Percentile.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/rank/Percentile.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- Percentile.java	21 Mar 2004 21:57:19 -0000	1.16
  +++ Percentile.java	26 Apr 2004 19:15:48 -0000	1.17
  @@ -42,8 +42,7 @@
        * value of 50.0.
        */
       public Percentile() {
  -        super();
  -        quantile = 50.0;
  +        this(50.0);
       }
   
       /**
  
  
  
  1.15      +5 -1      jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/rank/Min.java
  
  Index: Min.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/rank/Min.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Min.java	21 Feb 2004 21:35:16 -0000	1.14
  +++ Min.java	26 Apr 2004 19:15:48 -0000	1.15
  @@ -26,6 +26,8 @@
       .AbstractStorelessUnivariateStatistic;
   
   /**
  + * Returns the minimum of the available values.
  + * 
    * @version $Revision$ $Date$
    */
   public class Min extends AbstractStorelessUnivariateStatistic implements Serializable {
  @@ -69,6 +71,8 @@
       }
       
       /**
  +     * Returns the minimum of the available values.
  +     * 
        * @see org.apache.commons.math.stat.univariate.UnivariateStatistic#evaluate(double[],
int, int)
        */
       public double evaluate(
  
  
  
  1.19      +2 -2      jakarta-commons/math/src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java
  
  Index: EmpiricalDistributionImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- EmpiricalDistributionImpl.java	12 Apr 2004 02:27:49 -0000	1.18
  +++ EmpiricalDistributionImpl.java	26 Apr 2004 19:15:48 -0000	1.19
  @@ -51,7 +51,7 @@
    *    by 10.  See TODO: add reference </li>
    *<li>The input file <i>must</i> be a plain text file containing one
valid numeric
    *    entry per line.</li>
  - * </ol></p>
  + * </ul></p>
    *
    * @version $Revision$ $Date$
    */
  
  
  
  1.3       +4 -1      jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/DescriptiveStatisticsImpl.java
  
  Index: DescriptiveStatisticsImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/DescriptiveStatisticsImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DescriptiveStatisticsImpl.java	23 Apr 2004 19:50:27 -0000	1.2
  +++ DescriptiveStatisticsImpl.java	26 Apr 2004 19:15:48 -0000	1.3
  @@ -22,6 +22,9 @@
   import org.apache.commons.math.util.ContractableDoubleArray;
   
   /**
  + * Default implementation of
  + * {@link org.apache.commons.math.stat.univariate.DescriptiveStatistics}.
  + * 
    * @version $Revision$ $Date$
    */
   public class DescriptiveStatisticsImpl extends AbstractDescriptiveStatistics implements
Serializable {
  
  
  

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