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/distribution NormalDistributionImpl.java
Date Wed, 19 May 2004 15:06:45 GMT
brentworden    2004/05/19 08:06:44

  Modified:    math/src/java/org/apache/commons/math/stat/inference
                        ChiSquareTestImpl.java ChiSquareTest.java
               math/src/java/org/apache/commons/math/distribution
                        NormalDistributionImpl.java
  Log:
  Fixed javadoc warnings.
  
  Revision  Changes    Path
  1.3       +5 -9      jakarta-commons/math/src/java/org/apache/commons/math/stat/inference/ChiSquareTestImpl.java
  
  Index: ChiSquareTestImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/inference/ChiSquareTestImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ChiSquareTestImpl.java	19 May 2004 14:16:32 -0000	1.2
  +++ ChiSquareTestImpl.java	19 May 2004 15:06:44 -0000	1.3
  @@ -92,13 +92,11 @@
       }
       
       /**
  -     * @param observed array of observed frequency counts
  -     * @param expected array of expected frequency counts
  +     * @param counts array representation of 2-way table
        * @return chi-square test statistic
        * @throws IllegalArgumentException if preconditions are not met
        */
  -    public double chiSquare(long[][] counts)
  -    throws IllegalArgumentException {
  +    public double chiSquare(long[][] counts) throws IllegalArgumentException {
           
           checkArray(counts);
           int nRows = counts.length;
  @@ -130,8 +128,7 @@
       }
   
       /**
  -     * @param observed array of observed frequency counts
  -     * @param expected array of exptected frequency counts
  +     * @param counts array representation of 2-way table
        * @return p-value
        * @throws IllegalArgumentException if preconditions are not met
        * @throws MathException if an error occurs computing the p-value
  @@ -146,8 +143,7 @@
       }
   
       /**
  -     * @param observed array of observed frequency counts
  -     * @param expected array of exptected frequency counts
  +     * @param counts array representation of 2-way table
        * @param alpha significance level of the test
        * @return true iff null hypothesis can be rejected with confidence
        * 1 - alpha
  
  
  
  1.2       +2 -3      jakarta-commons/math/src/java/org/apache/commons/math/stat/inference/ChiSquareTest.java
  
  Index: ChiSquareTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/inference/ChiSquareTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ChiSquareTest.java	3 May 2004 03:02:25 -0000	1.1
  +++ ChiSquareTest.java	19 May 2004 15:06:44 -0000	1.2
  @@ -201,8 +201,7 @@
        * If any of the preconditions are not met, an 
        * <code>IllegalArgumentException</code> is thrown.
        *
  -     * @param observed array of observed frequency counts
  -     * @param expected array of exptected frequency counts
  +     * @param counts array representation of 2-way table
        * @param alpha significance level of the test
        * @return true iff null hypothesis can be rejected with confidence
        * 1 - alpha
  
  
  
  1.10      +6 -6      jakarta-commons/math/src/java/org/apache/commons/math/distribution/NormalDistributionImpl.java
  
  Index: NormalDistributionImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/NormalDistributionImpl.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- NormalDistributionImpl.java	19 May 2004 14:16:31 -0000	1.9
  +++ NormalDistributionImpl.java	19 May 2004 15:06:44 -0000	1.10
  @@ -23,10 +23,7 @@
   
   /**
    * Default implementation of
  - * {@link org.apache.commons.math.distribution.NormalDistribution}.<p>
  - * You can choose the algorithm used to calculate cumulative probability
  - * using method {@link #setCdfAlgorithm}. The deafault is the Cody algorithm 
  - * {@link org.apache.commons.math.distribution.NormalCDFPreciseAlgorithm}
  + * {@link org.apache.commons.math.distribution.NormalDistribution}.
    * 
    * @version $Revision$ $Date$
    */
  @@ -49,13 +46,15 @@
   		setMean(mean);
   		setStandardDeviation(sd);
   	}
  +    
   	/**
   	 * Creates normal distribution with the mean equal to zero and standard
   	 * deviation equal to one. 
   	 */
   	public NormalDistributionImpl(){
   		this(0.0, 1.0);
  -	}	
  +	}
  +    
   	/**
   	 * Access the mean.
   	 * @return mean for this distribution
  @@ -63,6 +62,7 @@
   	public double getMean() {
   		return mean;
   	}
  +    
   	/**
   	 * Modify the mean.
   	 * @param mean for this distribution
  
  
  

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