Geometric(Double p)

The probability distribution of the number of failures before the first success given a fixed probability of success p, supported on the set { 0, 1, 2, 3, … }.

Parameters

  • Double p - the probability of success.

Return type

Integer