pub fn fht(
a: &[f64],
dln: f64,
mu: f64,
offset: f64,
bias: f64,
) -> Result<Vec<f64>, ErrorsJSL>Expand description
The fast Hankel transform (SciPy’s fht) of a, sampled at r_j = r_c exp((j − j_c) dln),
j_c = (n − 1)/2: approximately A(k_j) = ∫₀^∞ a(r) J_μ(k_j r) k_j dr at
k_j = exp(offset)/r_c · exp((j − j_c) dln). With bias = q the input is multiplied by
(r/r_c)^{−q} and the output by (k/k_c)^{−q}, which can reduce ringing. FFTLog computes it
exactly for the periodic, log-spaced interpolant of a: an rFFT, multiplication by
u_m = 2^{q} Γ((μ+1+q+iy_m)/2)/Γ((μ+1−q−iy_m)/2) · e^{i y_m (ln 2 − offset)}, an inverse rFFT
and a reversal.