Fixed "Clirr" error.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1420669 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2012-12-12 13:40:35 +00:00
parent c5bb8dcf03
commit 63623c9236
1 changed files with 1 additions and 2 deletions

View File

@ -416,8 +416,7 @@ public class Beta {
* @return the value of {@code log(Beta(p, q))}, {@code NaN} if * @return the value of {@code log(Beta(p, q))}, {@code NaN} if
* {@code p <= 0} or {@code q <= 0}. * {@code p <= 0} or {@code q <= 0}.
*/ */
public static final double logBeta(final double p, final double q) { public static double logBeta(final double p, final double q) {
if (Double.isNaN(p) || Double.isNaN(q) || (p <= 0.0) || (q <= 0.0)) { if (Double.isNaN(p) || Double.isNaN(q) || (p <= 0.0) || (q <= 0.0)) {
return Double.NaN; return Double.NaN;
} }