pybird.fourier module
- class pybird.fourier.FourierTransform(s=None, NFFT=512, co=<pybird.common.Common object>)[source]
Bases:
object
A class to handle spherical Bessel transforms between correlation functions and power spectra.
The FourierTransform class implements efficient Fourier transforms using FFTLog to convert between configuration space (correlation functions) and Fourier space (power spectra). It handles multipole calculations and manages the transform settings for both directions.
- M
Transformation matrix for Cf → Ps.
- Type:
ndarray
- kPow
k-dependent power terms for Cf → Ps.
- Type:
ndarray
- MPs2Cf
Transformation matrix for Ps → Cf.
- Type:
ndarray
- sPow
s-dependent power terms for Ps → Cf.
- Type:
ndarray
- setM()[source]
Compute the matrices of the spherical-Bessel transform from Cf to Ps. Called at instantiation.
- setMPs2Cf()[source]
Compute the matrices of the spherical-Bessel transform from Ps to Cf. Called at instantiation.