Beta { @Deprecated public static double logBeta(double a, double b, double epsilon, int maxIterations) { return logBeta(a, b); } private  Beta(); static double regularizedBeta(double x, double a, double b); static double regularizedBeta(double x,
                                         double a, double b,
                                         double epsilon); static double regularizedBeta(double x,
                                         double a, double b,
                                         int maxIterations); static double regularizedBeta(double x,
                                         final double a, final double b,
                                         double epsilon, int maxIterations); @Deprecated static double logBeta(double a, double b,
                                 double epsilon,
                                 int maxIterations); static double logBeta(final double p, final double q);  }
@Test public void testLogBeta() { final int ulps = 3; for (int i = 0; i < LOG_BETA_REF.length; i++) { final double[] ref = LOG_BETA_REF[i]; final double a = ref[0]; final double b = ref[1]; final double expected = ref[2]; final double actual = Beta.logBeta(a, b); final double tol = ulps * FastMath.ulp(expected); final StringBuilder builder = new StringBuilder(); builder.append(a).append(", ").append(b); Assert.assertEquals(builder.toString(), expected, actual, tol); } }