cupynumeric.random.vonmises#
- cupynumeric.random.vonmises(mu, kappa, size=None)#
Draw samples from a von Mises distribution.
Samples are drawn from a von Mises distribution with specified mode (mu) and dispersion (kappa), on the interval [-pi, pi].
The von Mises distribution (also known as the circular normal distribution) is a continuous probability distribution on the unit circle. It may be thought of as the circular analogue of the normal distribution.
- Parameters:
mu (float) – Mode (“center”) of the distribution.
kappa (float) – Dispersion of the distribution, has to be >=0.
size (int or tuple of ints, optional) – Output shape. If the given shape is, e.g.,
(m, n, k), thenm * n * ksamples are drawn. Default is None, in which case a single value is returned.
- Returns:
out – Drawn samples from the parameterized von Mises distribution.
- Return type:
ndarray or scalar
See also
numpy.random.vonmises- Availability:
Multiple GPUs, Multiple CPUs