magneticScattering.dft.dft#
- dft(data, ft_pix=None, offset=None, upsample=1)#
One dimensional discrete Fourier transform (DFT).
- Parameters:
- datanp.ndarray
Input data to transform.
- ft_pixint (optional)
Number of Fourier transform points.
- offsetfloat (optional)
Frequency offset to adjust the frequency grid.
- upsamplefloat (optional)
Factor by which to upsample the frequency grid.
- Returns:
- np.ndarray
Array of the computed Fourier transform.