50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

CircStats (version 0.2-7)

rvm: Random Generation from the von Mises Distribution

Description

Generates pseudo-random numbers from a von Mises distribution.

Usage

rvm(n, mean, k)

Value

Returns a vector of n independent random variables generated from a von Mises distribution. Values are between 0 and 2 pi.

Arguments

n

number of random variables to generate.

mean

mean direction in radians of the von Mises distribution.

k

concentration parameter of the von Mises distribution.

Details

Simulation from the von Mises distribution is done via the algorithm due to Best and Fisher (1979).

References

Best, D. and Fisher, N. (1979). Efficient simulation of the von Mises distribution. Applied Statistics, 24, 152-157.

See Also

dmixedvm, dvm, pvm, rmixedvm