xnn.common.featurizers.radial.smooth_bessel_coefficients#

xnn.common.featurizers.radial.smooth_bessel_coefficients(n_rbf, cutoff)[source]#

The smooth spherical Bessel functions as combinations of sinc(k r / cutoff).

Kocer, Mason and Erturk (AIP Adv. 10, 015021, 2020) sum two neighboring zeroth-order spherical Bessel functions, f_n(r) = a_n [j0((n+1) pi r / rc) + j0((n+2) pi r / rc)] with a_n = (-1)^n sqrt(2) pi (n+1) (n+2) / (rc^1.5 sqrt((n+1)^2 + (n+2)^2)), so that each vanishes with its first derivative at rc, and orthogonalize them: g_0 = f_0 and g_n = (f_n + sqrt(e_n / d_(n-1)) g_(n-1)) / sqrt(d_n), with e_n = n^2 (n+2)^2 / (4 (n+1)^4 + 1), d_0 = 1 and d_n = 1 - e_n / d_(n-1). Here j0(k pi r / rc) = sinc(k r / rc).

Parameters:
  • n_rbf (int) – Number of functions g_0 ... g_(n_rbf - 1).

  • cutoff (float) – The cutoff radius rc.

Returns:

Float64 coefficients (n_rbf, n_rbf + 1): g_n(r) is the sum over k of the entry [n, k - 1] times sinc(k r / rc), k = 1 ... n_rbf + 1.

Return type:

Tensor