rvm | R Documentation |
Sample from von Mises distribution
rvm(n, mu, kappa)
n |
Number of samples |
mu |
Mean parameter |
kappa |
Concentration parameter |
Uses basic rejection sampling, based on dvm(), which might be inefficient for large kappa. Could be improved following Best & Fisher (1979), Efficient simulation of the von Mises distribution, JRSSC, 28(2), 152-157.
Vector of n samples from vm(mu, kappa)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.