Instantly share code, notes, and snippets.
I assume the DC amplitude appears only once in fft_x, and therefore should not be multiplied by 2? Am I mistaken?
@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.