Tabnine Logo
Beta.deltaMinusDeltaSum
Code IndexAdd Tabnine to your IDE (free)

How to use
deltaMinusDeltaSum
method
in
org.apache.commons.math3.special.Beta

Best Java code snippets using org.apache.commons.math3.special.Beta.deltaMinusDeltaSum (Showing top 6 results out of 315)

origin: org.apache.commons/commons-math3

if (a <= b) {
  d = b + (a - 0.5);
  w = deltaMinusDeltaSum(a, b);
} else {
  d = a + (b - 0.5);
  w = deltaMinusDeltaSum(b, a);
origin: org.apache.commons/commons-math3

/**
 * Returns the value of Δ(p) + Δ(q) - Δ(p + q), with p, q ≥ 10. Based on
 * the <em>NSWC Library of Mathematics Subroutines</em> double precision
 * implementation, {@code DBCORR}. In
 * {@code BetaTest.testSumDeltaMinusDeltaSum()}, this private method is
 * accessed through reflection.
 *
 * @param p First argument.
 * @param q Second argument.
 * @return the value of {@code Delta(p) + Delta(q) - Delta(p + q)}.
 * @throws NumberIsTooSmallException if {@code p < 10.0} or {@code q < 10.0}.
 */
private static double sumDeltaMinusDeltaSum(final double p,
                      final double q) {
  if (p < 10.0) {
    throw new NumberIsTooSmallException(p, 10.0, true);
  }
  if (q < 10.0) {
    throw new NumberIsTooSmallException(q, 10.0, true);
  }
  final double a = FastMath.min(p, q);
  final double b = FastMath.max(p, q);
  final double sqrtT = 10.0 / a;
  final double t = sqrtT * sqrtT;
  double z = DELTA[DELTA.length - 1];
  for (int i = DELTA.length - 2; i >= 0; i--) {
    z = t * z + DELTA[i];
  }
  return z / a + deltaMinusDeltaSum(a, b);
}
origin: geogebra/geogebra

/**
 * Returns the value of ?(p) + ?(q) - ?(p + q), with p, q ? 10. Based on
 * the <em>NSWC Library of Mathematics Subroutines</em> double precision
 * implementation, {@code DBCORR}. In
 * {@code BetaTest.testSumDeltaMinusDeltaSum()}, this private method is
 * accessed through reflection.
 *
 * @param p First argument.
 * @param q Second argument.
 * @return the value of {@code Delta(p) + Delta(q) - Delta(p + q)}.
 * @throws NumberIsTooSmallException if {@code p < 10.0} or {@code q < 10.0}.
 */
private static double sumDeltaMinusDeltaSum(final double p,
                      final double q) {
  if (p < 10.0) {
    throw new NumberIsTooSmallException(p, 10.0, true);
  }
  if (q < 10.0) {
    throw new NumberIsTooSmallException(q, 10.0, true);
  }
  final double a = Math.min(p, q);
  final double b = Math.max(p, q);
  final double sqrtT = 10.0 / a;
  final double t = sqrtT * sqrtT;
  double z = DELTA[DELTA.length - 1];
  for (int i = DELTA.length - 2; i >= 0; i--) {
    z = t * z + DELTA[i];
  }
  return z / a + deltaMinusDeltaSum(a, b);
}
origin: geogebra/geogebra

if (a <= b) {
  d = b + (a - 0.5);
  w = deltaMinusDeltaSum(a, b);
} else {
  d = a + (b - 0.5);
  w = deltaMinusDeltaSum(b, a);
origin: io.virtdata/virtdata-lib-realer

if (a <= b) {
  d = b + (a - 0.5);
  w = deltaMinusDeltaSum(a, b);
} else {
  d = a + (b - 0.5);
  w = deltaMinusDeltaSum(b, a);
origin: io.virtdata/virtdata-lib-realer

/**
 * Returns the value of Δ(p) + Δ(q) - Δ(p + q), with p, q ≥ 10. Based on
 * the <em>NSWC Library of Mathematics Subroutines</em> double precision
 * implementation, {@code DBCORR}. In
 * {@code BetaTest.testSumDeltaMinusDeltaSum()}, this private method is
 * accessed through reflection.
 *
 * @param p First argument.
 * @param q Second argument.
 * @return the value of {@code Delta(p) + Delta(q) - Delta(p + q)}.
 * @throws NumberIsTooSmallException if {@code p < 10.0} or {@code q < 10.0}.
 */
private static double sumDeltaMinusDeltaSum(final double p,
                      final double q) {
  if (p < 10.0) {
    throw new NumberIsTooSmallException(p, 10.0, true);
  }
  if (q < 10.0) {
    throw new NumberIsTooSmallException(q, 10.0, true);
  }
  final double a = FastMath.min(p, q);
  final double b = FastMath.max(p, q);
  final double sqrtT = 10.0 / a;
  final double t = sqrtT * sqrtT;
  double z = DELTA[DELTA.length - 1];
  for (int i = DELTA.length - 2; i >= 0; i--) {
    z = t * z + DELTA[i];
  }
  return z / a + deltaMinusDeltaSum(a, b);
}
org.apache.commons.math3.specialBetadeltaMinusDeltaSum

Javadoc

Returns the value of ?(b) - ?(a + b), with 0 ? a ? b and b ? 10. Based on equations (26), (27) and (28) in Didonato and Morris (1992).

Popular methods of Beta

  • regularizedBeta
    Returns the regularized beta function I(x, a, b).
  • logBeta
    Returns the natural logarithm of the beta function B(a, b). The implementation of this method is bas
  • logGammaMinusLogGammaSum
    Returns the value of log[Γ(b) / Γ(a + b)] for a ≥ 0 and b ≥ 10. Based on the NSWC Library of Mathem
  • logGammaSum
    Returns the value of log Γ(a + b) for 1 ≤ a, b ≤ 2. Based on theNSWC Library of Mathematics Subrouti
  • sumDeltaMinusDeltaSum
    Returns the value of Δ(p) + Δ(q) - Δ(p + q), with p, q ≥ 10. Based on the NSWC Library of Mathematic

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now