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/regression SimpleRegression.java
Date Sun, 24 Oct 2004 06:27:14 GMT
psteitz     2004/10/23 23:27:14

  Modified:    math/src/java/org/apache/commons/math/stat/regression
                        SimpleRegression.java
  Log:
  Fixed error in slope parameter significance estimate
  Pr #31860
  Reported by: Kim van der Linde
  
  Revision  Changes    Path
  1.2       +2 -3      jakarta-commons/math/src/java/org/apache/commons/math/stat/regression/SimpleRegression.java
  
  Index: SimpleRegression.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/regression/SimpleRegression.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SimpleRegression.java	8 Oct 2004 05:08:18 -0000	1.1
  +++ SimpleRegression.java	24 Oct 2004 06:27:14 -0000	1.2
  @@ -463,8 +463,7 @@
        * @throws MathException if the significance level can not be computed.
        */
       public double getSignificance() throws MathException {
  -        return (
  -            1.0 - getTDistribution().cumulativeProbability(
  +        return 2d* (1.0 - getTDistribution().cumulativeProbability(
                       Math.abs(getSlope()) / getSlopeStdErr()));
       }
   
  
  
  

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