Functions§
- geometric_
distribution - The number of failures before the first success in independent trials of probability
p(P(k) = (1 − p)ᵏ p), by inversion of the exponential:⌊ln(1 − u) / ln(1 − p)⌋.
p
(P(k) = (1 − p)ᵏ p), by inversion of the exponential: ⌊ln(1 − u) / ln(1 − p)⌋.