dpnp.random.Generator.hypergeometric¶
method
- Generator.hypergeometric(ngood, nbad, nsample, size=None, *, usm_type=None)[source]¶
Draw samples from a hypergeometric distribution.
For full documentation refer to
numpy.random.Generator.hypergeometric.- Parameters:
- ngood{int, array_like of ints, dpnp.ndarray, usm_ndarray}
The number of good items, non-negative.
- nbad{int, array_like of ints, dpnp.ndarray, usm_ndarray}
The number of bad items, non-negative.
- nsample{int, array_like of ints, dpnp.ndarray, usm_ndarray}
The number of items drawn, at least 1 and at most
ngood + nbad.- size{None, int, tuple of ints}, optional
Output shape. With
None, the broadcast shape of ngood, nbad and nsample.Default:
None.- usm_type{None, "device", "shared", "host"}, optional
The type of SYCL USM allocation for the output array.
Default:
None, which means the USM type of the array parameters, or"device"when there are none.
- Returns:
- outdpnp.ndarray
The samples, of data type
dpnp.int64.
Limitations
usm_type is not in NumPy's signature.