Hankel transforms¶
Hankel transforms relate Fourier-space power spectra to real-space correlation functions under radial symmetry. They arise naturally in cosmology because statistically isotropic fields can be described using power spectra that depend only on the magnitude of the wavevector.
DSF uses Hankel transforms to compute projected correlation functions, spherical correlation functions, and real-space covariance matrices.
Projected Hankel transforms¶
For an isotropic two-dimensional field, the projected correlation function of Bessel order \(n\) is
where \(P(k)\) is the Fourier-space spectrum, \(R\) is the projected separation, and \(J_n\) is the Bessel function of the first kind.
The Bessel order depends on the observable. For example, \(J_0\) appears in isotropic projected correlations, while \(J_2\) arises in tangential-shear calculations.
Spherical Hankel transforms¶
For statistically isotropic three-dimensional fields, the real-space correlation function is related to the power spectrum by
where \(j_0\) is the spherical Bessel function of order zero.
More generally, spherical Hankel transforms involve \(j_n(kr)\) for higher orders.
Covariance transformations¶
Hankel transforms also convert Fourier-space covariance kernels into real-space covariance matrices.
For a projected covariance kernel \(C(k,k')\), the corresponding real-space covariance can be written schematically as
The Bessel orders \(n\) and \(m\) depend on the observables being correlated. In DSF, these transformations are used to construct covariance matrices for projected statistics.
Numerical implementation¶
DSF provides three numerical backends through the
HankelTransform interface:
fftloguses logarithmic sampling and FFT-based methods.matrix_zerosconstructs transform operators using Bessel zeros.matrix_directconstructs transform operators on specified grids.
The appropriate backend depends on the dimensionality of the transform, numerical sampling, and required accuracy.
For practical examples and backend selection, see Hankel transforms.