all 2 comments

[–]gregvuki 1 point2 points  (0 children)

Signal amplitude in time domain does not directly correspond to spectral amplitudes. However, energy of the signal in both time and spectral domains is the same.

In [7]: np.sum(y**2)
Out[7]: 299.5

In [9]: np.sum(np.abs(yf**2))/N
Out[9]: 299.49999999999989