02 February 2017 6 4K Report

Hi Friends,

I have a signal data with real type, and want to Fourier transform it into the spectrum. To do this I use discrete fourier transform (dft) and discrete cosine transform (dct), respectively.

But the two FT methods give the spectrum with some difference in the location of the frequency peaks and also the intensity. According to my understanding,  dct and dft do the same thing, the difference is dft use the input data with complex type data and dct use the real data, but this does not matter,  dft can also just take the real part of the data. Then, the real part of the dft is a kind of dct.

The dct wiki suggests: "DCTs are equivalent to DFTs of roughly twice the length, operating on real data with even symmetry (since the Fourier transform of a real and even function is real and even), whereas in some variants the input and/or output data are shifted by half a sample."

Can anybody give some comments on this?

I just want to be sure that dct result is consistent with dft, i.e, shows less difference in the peak location and intensity for the obtained spectrum.

thanks

Similar questions and discussions