Class ErfDifference

java.lang.Object
org.apache.commons.numbers.gamma.ErfDifference

public final class ErfDifference extends Object
Computes the difference between error function values.
  • Method Details

    • value

      public static double value(double x1, double x2)
      The implementation uses either Erf or Erfc, depending on which provides the most precise result.
      Parameters:
      x1 - First value.
      x2 - Second value.
      Returns:
      Erf.value(x2) - Erf.value(x1).
      Throws:
      ArithmeticException - if the algorithm fails to converge.