Compute One Side Spectrum of FFT Result
int fft_one_side_spectrum( int nSize, double * pSpectrum, bool bShifted = false )
Return 0 for success.
EX1
#include <..\OriginLab\fft.h> void fft_one_side_spectrum_ex1() { vector vsig = {0, 0, 0, 1, 1, 0, 0, 0}; fft_fft_real(8, vsig); fft_one_side_spectrum(8, vsig); }
fft.h