aspcore.fouriertransform.dft.rfft

aspcore.fouriertransform.dft.rfft(time_sig, n=None, removed_freqs=0)

Computes the real FFT

Parameters:
  • time_sig (ndarray) – The signal to be transformed. The last axis should correspond to time

  • n (int, optional) – length of the FFT. If None, the length is the length of the last axis of time_sig

  • removed_freqs (int, or 2-tuple of int, optional) – The number of frequencies to remove. Default option is 0, which corresponds to the full real DFT. If an int is supplied, it is the number of low frequencies that were removed. If a 2-tuple is supplied, it is the number of low and high frequencies that were removed, respectively.

Returns:

freq_signal – The transformed signal

Return type:

ndarray

Notes

Corresponds to numpy.fft.rfft, but with the time convention used in this package.