vm_kappa_to_circ_sd {circhelp}R Documentation

Conversion between the circular SD and kappa of von Mises

Description

Conversion between the circular SD and kappa of von Mises

Usage

vm_kappa_to_circ_sd(kappa)

vm_kappa_to_circ_sd_deg(kappa)

vm_circ_sd_to_kappa(sd)

vm_circ_sd_deg_to_kappa(sd_deg)

Arguments

kappa

von Mises kappa parameter

sd

circular SD of von Mises (radians)

sd_deg

circular SD of von Mises (degrees)

Value

vm_kappa_to_circ_sd and vm_kappa_to_circ_sd_deg return circular SD (in radians or degrees, respectively) corresponding to a given kappa. vm_circ_sd_to_kappa and vm_circ_sd_deg_to_kappa return kappa corresponding to a given circular SD (in radians or degrees, respectively).

Functions

Examples


vm_kappa <- 5
vm_sd <- vm_kappa_to_circ_sd(vm_kappa)

vm_circ_sd_to_kappa(vm_sd)

x <- circular::rvonmises(10000, mu = circular::circular(0), kappa = vm_kappa)

sprintf("Expected SD: %.2f, actual SD: %.2f", vm_sd, circ_sd_rad(x))


[Package circhelp version 1.1 Index]