cunumeric.random.lognormal#

cunumeric.random.lognormal(mean=0.0, sigma=1.0, size=None)#

Draw samples from a log-normal distribution.

Draw samples from a log-normal distribution with specified mean, standard deviation, and array shape. Note that the mean and standard deviation are not the values for the distribution itself, but of the underlying normal distribution it is derived from.

Parameters:
  • mean (float, optional) – Mean value of the underlying normal distribution. Default is 0.

  • sigma (float, optional) – Standard deviation of the underlying normal distribution. Must be non-negative. Default is 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 log-normal distribution.

Return type:

ndarray or scalar

Availability:

Multiple GPUs, Multiple CPUs