Scipy/Numpy FFT Frequency Analysis

后端 未结 4 871
再見小時候
再見小時候 2020-12-04 08:15

I\'m looking for how to turn the frequency axis in a fft (taken via scipy.fftpack.fftfreq) into a frequency in Hertz, rather than bins or fractional bins.

I tried to

4条回答
  •  抹茶落季
    2020-12-04 09:04

    The frequency width of each bin is (sampling_freq / num_bins).

    A more fundamental problem is that your sample rate is not sufficient for your signals of interest. Your sample rate is 8.3 Hz; you need at least 16Hz in order to capture an 8Hz input tone.1


    1. To all the DSP experts; I'm aware that it's actually BW that's relevant, not max frequency. But I'm assuming the OP doesn't want to do undersampled data acquisition.

提交回复
热议问题