rvonmises: Random values simulation from a von Mises distribution

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/rvonmises.R


It generates random vectors following the von Mises distribution. The data can be spherical or hyper-spherical.


rvonmises(n, m, k, rads = TRUE)



The sample size.


The mean angle expressed in radians or degrees.


The concentration parameter. If k is zero the sample will be generated from the uniform distribution over (0, 2π).


If the mean angle is expressed in radians, this should be TRUE and FALSE otherwise. The simulated data will be expressed in radians or degrees depending on what the mean angle is expressed.


The mean direction is transformed to the Euclidean coordinates (i.e. unit vector) and then the fvmf function is employed. It uses a rejection smapling as suggested by Andrew Wood in 1994. I have mentioned the description of the algorithm as I found it in Dhillon and Sra in 2003. Finally, the data are transformed to radians or degrees.


A vector with the simulated data.


Michail Tsagris

R implementation and documentation: Michail Tsagris <mtsagris@yahoo.gr> and Giorgos Athineou <athineou@csd.uoc.gr>


Wood, A. T. (1994). Simulation of the von Mises Fisher distribution. Communications in statistics-simulation and computation, 23(1): 157-164. Dhillon, I. S., & Sra, S. (2003). Modeling data using directional distributions. Technical Report TR-03-06, Department of Computer Sciences, The University of Texas at Austin. http://citeseerx.ist.psu.edu/viewdoc/download?doi=

See Also

circ.summary, rvmf, racg


x <- rvonmises(100, 2, 25, rads = TRUE)
circ.summary(x, rads = TRUE)

Directional documentation built on May 19, 2017, 3:29 p.m.

Search within the Directional package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.