Distribution function of the gamma distribution. Equivalent to R's pgamma(q, shape, rate = 1, scale = 1/rate, lower.tail = TRUE, log.p = FALSE).
pgamma(q, shape, rate = 1, scale = 1/rate, lower.tail = TRUE, log.p = FALSE)
Quantile(s): a number, number[] or Float64Array. The result has the same shape.
number[]
Float64Array
Shape parameter.
rate or scale (see GammaParams), lowerTail and logP (see TailOptions).
rate
scale
lowerTail
logP
The probability (or log probability).
RangeError if both rate and scale are given and scale is not 1 / rate.
1 / rate
pgamma(2, 2); // 0.5939941502901619pgamma(2, 2, { rate: 3 }); // 0.9826487347633355pgamma(2, 2, { scale: 3 }); // 0.14430480161234657 Copy
pgamma(2, 2); // 0.5939941502901619pgamma(2, 2, { rate: 3 }); // 0.9826487347633355pgamma(2, 2, { scale: 3 }); // 0.14430480161234657
Distribution function of the gamma distribution. Equivalent to R's
pgamma(q, shape, rate = 1, scale = 1/rate, lower.tail = TRUE, log.p = FALSE).