draw.von.mises {UnivRNG} | R Documentation |
Generates variates from Von Mises distribution
Description
This function implements pseudo-random number generation for a Von Mises distribution with pdf
for and
where
is a modified Bessel function of the first kind of order 0.
Usage
draw.von.mises(nrep,K)
Arguments
nrep |
Number of data points to generate. |
K |
Parameter of the desired von Mises distribution. |
Value
A list of length three containing generated data, the theoretical mean, and the empirical mean with names y, theo.mean, and emp.mean, respectively.
References
Best, D. J., & Fisher, N. I. (1979). Efficient simulation of the von mises distribution. Applied Statistics, 28, 152-157.
Examples
draw.von.mises(nrep=100000,K=10)
draw.von.mises(nrep=100000,K=0.5)
[Package UnivRNG version 1.2.3 Index]