I know by theory that the energy spectrum of a given signal is the sum of the squared fourier coefficient.
What if I have the real and imaginary part of the corresponding fourier coefficient, can I say that energy spectrum of a given signal is equal to sum of (real part + imaginary part)^2
\sum_i |fourier_coefficient_i|^2
. However, afaik, the Fourier coefficients of a signal give you the energy density at that frequency (i.e. the spectral density over the energy domain), and summing their absolute value give you, by Parseval's theorem, the total energy. – vsoftco