dpnp.random.zipf

dpnp.random.zipf(a, size=None)[source]

Returns an array of samples drawn from the Zipf distribution.

For full documentation refer to numpy.random.zipf.

Limitations

Parameter a` is supported as a scalar. Otherwise, numpy.zipf.weibull(a, size) samples are drawn. Output array data type is dpnp.float64.

Examples

>>> a = 2. # parameter
>>> s = np.random.zipf(a, 1000)