You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2012/09/16 18:09:17 UTC
svn commit: r1385299 -
/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/ChiSquaredDistribution.java
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} */