aspcore.fouriertransform.get_freqs

aspcore.fouriertransform.get_freqs(num_freq: int, samplerate: int)

Returns the sampled frequencies in Hz for a discrete Fourier transform

Parameters:
  • num_freq (int) – should equal the length of the sequence so it includes the number of negative frequencies

  • samplerate (int)

Returns:

freqs

Return type:

ndarray of shape (num_freq,)