Skip to contents

Angle of maximum density of a specified von Mises distribution

Usage

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

Arguments

x

numeric vector. Values in degrees.

kappa

von Mises distribution concentration parameter

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.

Value

numeric

Examples

x <- rvm(10, 0, 100) %% 180
circular_mode(x, kappa = 2)
#> [1] 0.703125