Create a gist now

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.

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

Owner

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.

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