Class FastErfInverse


  • public class FastErfInverse
    extends Object
    Approximates the inverse of erf(x), valid on the interval [-0.9999779095,0.9999779095], with a maximum error of about 6e-5.

    Being a piecewise linear interpolation of a convex function, the function's magnitude is everywhere an upper bound on the true value, which is fine for the usual application of this function (multipliers for confidence intervals, making the estimate slightly more conservative).

    Author:
    ellis
    • Method Detail

      • evaluate

        public double evaluate​(double x)