cunumeric.random.weibull#

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

Draw samples from a Weibull distribution.

Draw samples from a 1-parameter Weibull distribution with the given shape parameter a.

\[X = (-ln(U))^{1/a}\]

Here, U is drawn from the uniform distribution over (0,1].

The more common 2-parameter Weibull, including a scale parameter \(\lambda\) is just \(X = \lambda(-ln(U))^{1/a}\).

Parameters:
  • a (float) – Shape parameter of the distribution. Must be nonnegative.

  • 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. Default is None, in which case a single value is returned.

Returns:

out – Drawn samples from the parameterized Weibull distribution.

Return type:

ndarray or scalar

Availability:

Multiple GPUs, Multiple CPUs