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

    Function pnorm

    • Distribution function of the normal distribution. Equivalent to R's pnorm(q, mean = 0, sd = 1, lower.tail = TRUE, log.p = FALSE).

      Type Parameters

      Parameters

      • q: T

        Quantile(s): a number, number[] or Float64Array. The result has the same shape.

      • options: NormalOptions = {}

        mean, sd, lowerTail and logP (see NormalOptions).

      Returns VectorResult<T>

      The probability (or log probability).

      pnorm(1.96);                          // 0.9750021048517795
      pnorm(1.96, { lowerTail: false }); // 0.024997895148220435
      pnorm(new Float64Array([-1, 0, 1])); // Float64Array [0.15865525393145707, 0.5, 0.8413447460685429]
      pnorm(-40, { logP: true }); // -804.6084420137538