commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1385299 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/ChiSquaredDistribution.java
Date Sun, 16 Sep 2012 16:09:17 GMT
Author: tn
Date: Sun Sep 16 16:09:17 2012
New Revision: 1385299

URL: http://svn.apache.org/viewvc?rev=1385299&view=rev
Log:
Replace deprecated method call.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/ChiSquaredDistribution.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/ChiSquaredDistribution.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/ChiSquaredDistribution.java?rev=1385299&r1=1385298&r2=1385299&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/ChiSquaredDistribution.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/ChiSquaredDistribution.java
Sun Sep 16 16:09:17 2012
@@ -89,7 +89,7 @@ public class ChiSquaredDistribution exte
      * @return the degrees of freedom.
      */
     public double getDegreesOfFreedom() {
-        return gamma.getAlpha() * 2.0;
+        return gamma.getShape() * 2.0;
     }
 
     /** {@inheritDoc} */



Mime
View raw message