vonmises | R Documentation |
Density, probability distribution function, quantiles, and random generation for the circular normal distribution with mean and kappa.
rvm(n, mean, kappa)
dvm(theta, mean, kappa, log = FALSE, axial = FALSE)
pvm(theta, mean, kappa, from = NULL, tol = 1e-20)
qvm(p, mean = 0, kappa, from = NULL, tol = .Machine$double.eps^(0.6), ...)
n |
integer. Number of observations in degrees |
mean |
numeric. Mean angle in degrees |
kappa |
numeric. Concentration parameter in the range (0, Inf] |
theta |
numeric. Angular value in degrees |
log |
logical. If |
axial |
logical. Whether the data are axial, i.e. |
from |
if |
tol |
numeric. The precision in evaluating the distribution function or the quantile. |
p |
numeric. Vector of probabilities with values in |
... |
parameters passed to |
dvm
gives the density,
pvm
gives the probability of the von Mises distribution function,
rvm
generates random deviates (in degrees), and
qvm
provides quantiles (in degrees).
set.seed(1)
x <- rvm(5, mean = 90, kappa = 2)
dvm(x, mean = 90, kappa = 2)
dvm(x, mean = 90, kappa = 2, axial = TRUE)
pvm(x, mean = 90, kappa = 2)
qvm(c(.25, .5, .75), mean = 90, kappa = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.