From 9ad58f46b091ef6ca47d8a3219f1036cf2cf0d24 Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Sun, 16 Sep 2012 16:09:17 +0000 Subject: [PATCH] Replace deprecated method call. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385299 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/math3/distribution/ChiSquaredDistribution.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/math3/distribution/ChiSquaredDistribution.java b/src/main/java/org/apache/commons/math3/distribution/ChiSquaredDistribution.java index caabbf210..85bdb3c05 100644 --- a/src/main/java/org/apache/commons/math3/distribution/ChiSquaredDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/ChiSquaredDistribution.java @@ -89,7 +89,7 @@ public class ChiSquaredDistribution extends AbstractRealDistribution { * @return the degrees of freedom. */ public double getDegreesOfFreedom() { - return gamma.getAlpha() * 2.0; + return gamma.getShape() * 2.0; } /** {@inheritDoc} */