Instantly share code, notes, and snippets.

What would you like to do?
IPython Notebook FFT Example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This comment has been minimized.

Copy link

tarokiritani commented Oct 19, 2016

I assume the DC amplitude appears only once in fft_x, and therefore should not be multiplied by 2? Am I mistaken?


This comment has been minimized.

Copy link
Owner Author

jedludlow commented Nov 16, 2016

@tarokiritani Yes, that is correct. More precisely, the FFT returns energy across the spectrum of positive, negative, and zero frequencies. The folding process takes all the energy from the negative frequencies and places it at the matching positive frequencies. There is a single entry in fft_x for zero frequency, so there is no folding required there.


This comment has been minimized.

Copy link

raproth commented Aug 16, 2018

is the lowest plot equivalent to the PSD?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment