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:
parent
c5bb8dcf03
commit
63623c9236
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue