[SciPy-User] Amplitude scaling in fft

Sharaf Al-Sharif sfalsharif at gmail.com
Sun Jan 17 18:44:56 EST 2010


Hi,
I'm a bit confused regarding how the amplitudes returned by np.fft.fft (or
np.fft.rfft) relate to the amplitudes of the original signal in time domain.
If:
A = np.fft.rfft(a,n=2048)
but,
n_pts = len(a) < 2048,

will the physical amplitudes in time domain be np.abs(A)*2/2048 , or
np.abs(A)*2/n_pts? Or something else?
Thank you for your help.

Sharaf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20100117/d834f82d/attachment.html>


More information about the SciPy-User mailing list