View source: R/helpers-parameters.R
k2sd | R Documentation |
This function transforms the precision parameter kappa of the von Mises distribution to the circular standard deviation. Adapted from Matlab code by Paul Bays (https://www.paulbays.com/code.php)
k2sd(K)
K |
numeric. A vector of kappa values. |
A vector of sd values.
kappas <- runif(1000, 0.01, 100)
# calcualte SD (in radians)
SDs <- k2sd(kappas)
# transform SDs from radians to degrees
SDs_degress <- SDs * 180 / pi
# plot the relationship between kappa and circular SD
plot(kappas,SDs)
plot(kappas,SDs_degress)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.