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

    Function gammainc

    • The non-regularized incomplete gamma functions gamma(a, x) and Gamma(a, x) and their logs. Equivalent to pracma::gammainc() in R. pracma::gammainc(x, a) returns them as lowinc and uppinc; in base R they are pgamma(x, a) * gamma(a) and pgamma(x, a, lower.tail = FALSE) * gamma(a).

      Parameters

      • x: number
      • a: number

      Returns GammaincResult

      gammainc(2, 3).lower; // 0.6466471676338731 (2 - 10 e^-2)