aspcore.fouriertransform.fft

aspcore.fouriertransform.fft(time_sig, n=None)

Computes the FFT

Computes along the last axis, and moves the resulting frequency axis to the first axis. Uses the opposite time convention as numpy.fft.

Parameters:
  • time_sig (ndarray of shape (..., num_samples)) – 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

Returns:

freq_signal – The transformed signal.

Return type:

ndarray (num_freqs, …)