Plotting power spectrum in python

后端 未结 5 2002
情深已故
情深已故 2020-12-07 09:51

I have an array with 301 values, which were gathered from a movie clip with 301 frames. This means 1 value from 1 frame. The movie clip is running at 30 fps, so is in fact 1

5条回答
  •  长情又很酷
    2020-12-07 10:28

    From the numpy fft page http://docs.scipy.org/doc/numpy/reference/routines.fft.html:

    When the input a is a time-domain signal and A = fft(a), np.abs(A) is its amplitude spectrum and np.abs(A)**2 is its power spectrum. The phase spectrum is obtained by np.angle(A).

提交回复
热议问题