cunumeric.random.logseries#

cunumeric.random.logseries(p, size=None)#

Draw samples from a logarithmic series distribution.

Samples are drawn from a log series distribution with specified shape parameter, 0 < p < 1.

Parameters:
  • p (float) – Shape parameter for the distribution. Must be in the range (0, 1).

  • size (int or tuple of ints, optional) – Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. If size is None (default), a single value is returned.

Returns:

out – Drawn samples from the parameterized logarithmic series distribution.

Return type:

ndarray or scalar

Availability:

Multiple GPUs, Multiple CPUs