rStats.js v1.3.0
    Preparing search index...

    Function erfinv

    • Inverse of the error function: the x with erf(x) = y, for -1 <= y <= 1 (NaN outside). Equivalent to pracma::erfinv() in R. Unlike pracma, it is accurate for small |y| (pracma's qnorm((1 + y) / 2) loses it: erfinv(1e-300) is -0 there).

      Parameters

      • y: number

      Returns number

      erfinv(0.5); // 0.4769362762044699