
Convert between parametrizations of the c parameter of the SDM distribution
Source:R/helpers-parameters.R
c_parametrizations.RdConvert between parametrizations of the c parameter of the SDM distribution
Usage
c_sqrtexp2bessel(c, kappa)
c_bessel2sqrtexp(c, kappa)
c_laplace_circle2line(c, kappa)
c_laplace_line2circle(c, kappa)Details
With scaling = "density", sdm() divides the memory strength c
by the integral of the activation function. Two pairs of functions
convert c to and from the forms used elsewhere.
Von Mises activation. bmm approximates the integral by
\(\sqrt{2\pi/\kappa}\) (the sqrtexp parametrization, the default in
bmm); Oberauer (2023) uses the exact von Mises density (the bessel
parametrization). c_sqrtexp2bessel converts from the sqrtexp to the
bessel parametrization, c_bessel2sqrtexp back. See the online article.
Laplace activation. bmm divides by the exact integral over the
circle, \(2(1 - e^{-\kappa \pi}) / \kappa\); Oberauer (2023, eq. 2)
multiplies the activation by \(\kappa / 2\), that is, divides by the
integral over the real line, \(2 / \kappa\). c_laplace_circle2line
converts the c of bmm to that of eq. 2, \(c_{line} = c_{circle} /
(1 - e^{-\kappa \pi})\), and c_laplace_line2circle back. The two differ
by less than 1% once \(\kappa\) exceeds 1.5. At \(\kappa = 0\) the
real-line form has no finite c; c_laplace_circle2line() returns Inf
there, and NaN when c is 0 as well.