kspace.TopHatFilter#

class kspace.TopHatFilter(length, ndim=3)[source]#

Bases: KSpaceFilter

Spherical top-hat filter kernel at fixed scale length (\(\ell\)): uniform over a ball of radius \(\ell\) in real space (Perrone et al. 2026, Eq. 4), with Fourier-space multiplier

\[\hat{W}_\ell(k) = \Gamma(n/2 + 1) \left(\frac{2}{k\ell}\right)^{n/2} J_{n/2}(k\ell)\]

the n-dimensional generalization of Perrone et al. 2026’s Eq. 41, which gives the n=3 case \(\hat{W}_\ell(k) = 3 j_1(k\ell)/(k\ell)\) (\(j_1\) the spherical Bessel function) in terms of the ordinary Bessel function \(J_{3/2}\).

__init__(length, ndim=3)#

Methods

__init__(length[, ndim])