geometricDistribution
geometricDistribution(
probability):Distribution
Defined in: geometric-distribution.ts:21
The geometric distribution — the number of failures before the first success.
The support therefore starts at 0, not 1. That is the convention under which
geometricDistribution(p) and negativeBinomialDistribution(1, p) are the
same distribution; libraries counting trials instead give an answer one
larger throughout.
Every member has a closed form, quantile included, so none of them
iterates.
Parameters
Section titled “Parameters”probability
Section titled “probability”number
Success probability of one attempt, in (0, 1].
Returns
Section titled “Returns”The distribution.
Throws
Section titled “Throws”When probability is outside (0, 1].