xnn.krnn.kernels#
Matern kernels of half-integer order, as radial functions with their derivatives.
The Matern kernel of order nu = n + 1/2 with length scale sigma is
k(r) = exp(-a r) P_n(r), a = sqrt(2 nu) / sigma,
P_n(r) = sum_{k=0..n} (n + k)! / (2n)! * C(n, k) * (2 a r)^(n - k)
(Chmiela et al., Sci. Adv. 3, e1603015, 2017, eq. 3). Gradient-domain models
need g(r) = -k'(r) / r and t(r) = g'(r) / r; for n >= 2 both are
exp(-a r) times polynomials, finite at r = 0 (the numerators vanish
there), whose coefficients are formed here once.
Functions
|
Euclidean norm over the last axis with a zero gradient at the origin. |
Classes
|
Matern kernel of order |