Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rvm

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


CircStats

Circular Statistics, from "Topics in Circular Statistics" (2001)

v0.2-6
GPL-2
Authors
S-plus original by Ulric Lund <ulund@calpoly.edu>, R port by Claudio Agostinelli <claudio.agostinelli@unitn.it>
Initial release
2018-06-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.