cunumeric.random.power#

cunumeric.random.power(a, size=None)#

Draws samples in [0, 1] from a power distribution with positive exponent a - 1.

Also known as the power function distribution.

Parameters:
  • a (float) – Parameter of the distribution. Must be non-negative.

  • 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 power distribution.

Return type:

ndarray or scalar

Raises:

ValueError – If a <= 0.

Availability:

Multiple GPUs, Multiple CPUs