cupy.random.geometric#
- cupy.random.geometric(p, size=None, dtype=<class 'int'>)[source]#
Geometric distribution.
Returns an array of samples drawn from the geometric distribution. Its probability mass function is defined as
\[f(x) = p(1-p)^{k-1}.\]- Parameters
- Returns
Samples drawn from the geometric distribution.
- Return type
See also