cupy.random.vonmises#

cupy.random.vonmises(mu, kappa, size=None, dtype=<class 'float'>)[source]#

von Mises distribution.

Returns an array of samples drawn from the von Mises distribution. Its probability density function is defined as

\[f(x) = \frac{e^{\kappa \cos(x-\mu)}}{2\pi I_0(\kappa)}.\]
Parameters
  • mu (float) – Parameter of the von Mises distribution \(\mu\).

  • kappa (float) – Parameter of the von Mises distribution \(\kappa\).

  • size (int or tuple of ints) – The shape of the array. If None, a zero-dimensional array is generated.

  • dtype – Data type specifier. Only numpy.float32 and numpy.float64 types are allowed.

Returns

Samples drawn from the von Mises distribution.

Return type

cupy.ndarray