amep.utils.rfft#

amep.utils.rfft(data: ndarray, delta: float = 1.0) tuple[ndarray, ndarray]#

Real fast Fourier transform. Requires the corresponding time values to be equally spaced with distance delta.

Parameters:
  • data (np.ndarray) – Real data to transform as array of shape (N,).

  • delta (float, optional) – Spacing of the corresponding x (time) values to calculated correct frequencies. The default is 1.0.

Returns:

  • ft (np.ndarray) – Fourier-transformed data.

  • fq (np.ndarray) – Corresponding frequencies.