powered by
MLE angle (maximum density) using a von Mises distribution kernel with specified concentration.
circular_mode(x, kappa = NULL, axial = TRUE, n = 512)
numeric
numeric vector. Values in degrees.
von Mises distribution concentration parameter. Will be estimated using est.kappa() if not provided.
est.kappa()
logical. Whether the data are axial, i.e. pi-periodical (TRUE, the default) or directional, i.e. \(2 \pi\)-periodical (FALSE).#' @param kappa
TRUE
FALSE
the number of equally spaced points at which the density is to be estimated.
set.seed(1) x <- rvm(10, 0, 100) circular_mode(x, kappa = est.kappa(x))
Run the code above in your browser using DataLab