Learn R Programming

circular (version 0.3-7)

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, p)
rmixedvonmises(n, mu1, mu2, kappa1, kappa2, p, control.circular = list())

Arguments

x
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.
p
mixing proportion.
control.circular
the attribute of the resulting object.

Value

  • dmixedvonmises gives the density and rmixedvonmises generates random deviates.

See Also

dvonmises and rvonmises

Examples

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

Run the code above in your browser using DataLab