rvm {CircStats} | R Documentation |
Random Generation from the von Mises Distribution
Description
Generates pseudo-random numbers from a von Mises distribution.
Usage
rvm(n, mean, k)
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).
Value
Returns a vector of n independent random variables generated from a von Mises distribution. Values are between 0 and 2 pi.
References
Best, D. and Fisher, N. (1979). Efficient simulation of the von Mises distribution. Applied Statistics, 24, 152-157.
See Also
[Package CircStats version 0.2-6 Index]