- #1
brian0918
- 44
- 0
This is part of my senior project. Please help! I'm trying to use a code to FFT a real, even set of data, but the results are not real and even as would be expected.
The code I'm using is availabe http://www.koders.com/c++/fid1C48DD8DBB45CA4B87C9A38DAFC532E793443862.aspx (and http://www.koders.com/c/fid52CE41F3A31157362D33C32AB2DBEDBBE68D78D9.aspx andhttp://www.koders.com/c/fidB64062339509A55058571EB7378153A9A2151D38.aspx?s=intl.h)
When I run RealFFT with the following 16 numbers for the Real input and nothing for the Imag input, I get these results:
Real input:
0.969647
-1.28744
0.0863155
0.19462
1.06651
0.490905
0.469052
-0.728912
-0.728912
0.469052
0.490905
1.06651
0.19462
0.0863155
-1.28744
0.969647
Real output:
2.52139
-0.37157
-2.72877
4.38382
1.74303
2.06953
0.687978
0.712455
Imag output:
1.19209e-007
0.0739102
1.13029
-2.92917
-1.74303
-3.09727
-1.66093
-3.58175
Any help? I've tried a different FFT code and the same thing happens. Help!
The code I'm using is availabe http://www.koders.com/c++/fid1C48DD8DBB45CA4B87C9A38DAFC532E793443862.aspx (and http://www.koders.com/c/fid52CE41F3A31157362D33C32AB2DBEDBBE68D78D9.aspx andhttp://www.koders.com/c/fidB64062339509A55058571EB7378153A9A2151D38.aspx?s=intl.h)
When I run RealFFT with the following 16 numbers for the Real input and nothing for the Imag input, I get these results:
Real input:
0.969647
-1.28744
0.0863155
0.19462
1.06651
0.490905
0.469052
-0.728912
-0.728912
0.469052
0.490905
1.06651
0.19462
0.0863155
-1.28744
0.969647
Real output:
2.52139
-0.37157
-2.72877
4.38382
1.74303
2.06953
0.687978
0.712455
Imag output:
1.19209e-007
0.0739102
1.13029
-2.92917
-1.74303
-3.09727
-1.66093
-3.58175
Any help? I've tried a different FFT code and the same thing happens. Help!