Learn R Programming

tectonicr (version 0.4.8)

circular_mode: Circular Mode

Description

MLE angle (maximum density) using a von Mises distribution kernel with specified concentration.

Usage

circular_mode(x, kappa = NULL, axial = TRUE, n = 512)

Value

numeric

Arguments

x

numeric vector. Values in degrees.

kappa

von Mises distribution concentration parameter. Will be estimated using est.kappa() if not provided.

axial

logical. Whether the data are axial, i.e. pi-periodical (TRUE, the default) or directional, i.e. \(2 \pi\)-periodical (FALSE).#' @param kappa

n

the number of equally spaced points at which the density is to be estimated.

References

N.I. Fisher (1993) Statistical Analysis of Circular Data, Cambridge University Press.

Examples

Run this code
set.seed(1)
x <- rvm(10, 0, 100)
circular_mode(x, kappa = est.kappa(x))

Run the code above in your browser using DataLab