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

    Function pexp

    • Distribution function of the exponential distribution. Equivalent to R's pexp(q, rate = 1, lower.tail = TRUE, log.p = FALSE).

      Type Parameters

      Parameters

      Returns VectorResult<T>

      The probability (or log probability).

      pexp(1);                                  // 0.6321205588285577
      pexp(1, { rate: 2, lowerTail: false }); // 0.1353352832366127