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

mixedvonmises

Mixture of von Mises Distributions


Description

Density and random generation for the mixed von Mises circular distribution.

Usage

dmixedvonmises(x, mu1, mu2, kappa1, kappa2, prop)
rmixedvonmises(n, mu1, mu2, kappa1, kappa2, prop, control.circular = list())
pmixedvonmises(q, mu1, mu2, kappa1, kappa2, prop, from=NULL, tol = 1e-020)

Arguments

x, q

a vector. The object is coerced to class circular.

n

number of observations.

mu1

mean direction of one of the two von Mises distributions as a circular object.

mu2

mean direction of the other von Mises distribution as a circular object.

kappa1

concentration parameter of one of the two von Mises distributions.

kappa2

concentration parameter of the other von Mises distribution.

prop

mixing proportion.

from

if NULL is set equal to 0 (Notice the difference from the correspoding vonmises distribution). This is the value from which the pmixedvonmises is evaluated. It should be a circular object.

tol

the precision in evaluating the distributon function or the quantile.

control.circular

the attribute of the resulting object.

Value

dmixedvonmises gives the density, pmixedvonmises gives the distribution function and rmixedvonmises generates random deviates.

Author(s)

Claudio Agostinelli and Ulric Lund

See Also

Examples

x <- rmixedvonmises(n=100, mu1=circular(0), mu2=circular(pi), kappa1=15, 
  kappa2=15, prop=0.5)
plot(x)

circular

Circular Statistics

v0.4-93
GPL-2
Authors
Ulric Lund <ulund@calpoly.edu> [aut], Claudio Agostinelli <claudio.agostinelli@unitn.it> [aut, cre], Hiroyoshi Arai <h_arai@aoni.waseda.jp> [ctb], Alessando Gagliardi <gagliardi@stud.unive.it> [ctb], Eduardo Garcia Portugues <edgarcia@est-econ.uc3m.es> [ctb], Dimitri Giunchi <dimitri.giunchi@unipi.it> [ctb], Jean-Olivier Irisson <irisson@normalesup.org> [ctb], Matthew Pocernich <pocernic@ucar.edu> [ctb], Federico Rotolo [ctb]
Initial release
2017-06-26

We don't support your browser anymore

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