Distribution function of the geometric distribution (number of failures before the first success). Equivalent to R's pgeom(q, prob, lower.tail = TRUE, log.p = FALSE).
pgeom(q, prob, lower.tail = TRUE, log.p = FALSE)
Quantile(s): a number, number[] or Float64Array. The result has the same shape.
number[]
Float64Array
Probability of success on each trial.
lowerTail and logP (see TailOptions).
lowerTail
logP
The probability (or log probability).
pgeom(2, 0.3); // 0.657pgeom(2, 0.3, { lowerTail: false }); // 0.343 Copy
pgeom(2, 0.3); // 0.657pgeom(2, 0.3, { lowerTail: false }); // 0.343
Distribution function of the geometric distribution (number of failures before the first success). Equivalent to R's
pgeom(q, prob, lower.tail = TRUE, log.p = FALSE).