vonmises: The von Mises Distribution

vonmisesR Documentation

The von Mises Distribution

Description

Density, probability distribution function, quantiles, and random generation for the circular normal distribution with mean and kappa.

Usage

rvm(n, mean, kappa)

dvm(theta, mean, kappa)

pvm(theta, mean, kappa, from = NULL, tol = 1e-20)

qvm(p, mean = 0, kappa, from = NULL, tol = .Machine$double.eps^(0.6))

Arguments

n

number of observations in degrees

mean

mean in degrees

kappa

concentration parameter

theta

angular value in degrees

from

if NULL is set to \mu-\pi. This is the value from which the pvm and qvm are evaluated. in degrees.

tol

the precision in evaluating the distribution function or the quantile.

p

numeric vector of probabilities with values in [0,1].

Value

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).

Examples

x <- rvm(100, mean = 90, kappa = 2)
dvm(x, mean = 90, kappa = 2)
pvm(x, mean = 90, kappa = 2)
qvm(c(.25, .5, .75), mean = 90, kappa = 2)

tectonicr documentation built on Sept. 11, 2024, 6:05 p.m.