cupy.random.zipf¶
-
cupy.random.
zipf
(a, size=None, dtype=<class 'int'>)[source]¶ Zipf distribution.
Returns an array of samples drawn from the Zipf distribution. Its probability mass function is defined as
\[f(x) = \frac{x^{-a}}{ \zeta (a)},\]where \(\zeta\) is the Riemann Zeta function.
Parameters: Returns: Samples drawn from the Zipf distribution.
Return type: See also