For each element of x, compute the cumulative distribution function (CDF) at x of the geometric distribution with parameter p.
The geometric distribution models the number of failures (x) of a Bernoulli trial with probability p before the first success.
Package: statistics