- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
I'm calculating FFT of a complex signal using ippsFFTFwd_CToC_32fc function with order=10 (1024) and IPP_FFT_DIV_FWD_BY_N flag in Init. After applying my custom window (based on WinBlackmanStd) to the input data, one element of the output data in frequency domain gets exactly zero value (0, 0). As Matlab says, that element is the smallest element in the output array, its absolute value is near others':
Sp(30:35)
ans =
1.0e-005 *
0.0754 0.1696 0.0231 0.1748 0.4586 0.6651
This matlab output shows elements surrounding the problem 32nd element, which becomes zero in IPP's FFT output. The dynamic range of samples in frequency domain is from 0.8e+2 to 0.2e-6. I tried to use ippAlgHintAccurate flag, but it had no effect. Is seems like internal IPP's algorithms have insufficient accuracy while computing FFT.
If it is necessary, I can provide input and window samples.
Best Regards,
Aleksey
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The IPP function is 32 bit float = "Single"; this having approx. 6.5 significant digits, which could be the problem.
Did you try to run your code using ippsFFTFwd_CToC_64fc? (if it exists, I didn't check).
With it, you could see where your digits are truncated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes, exactly - pls try the 64fc version of this function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot! Yes, 64fc version of FFT works properly. I overestimated float 32-bit function accuracy for my input signal with large dynamic range.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
One more note: Matlab uses IPP FFT internaly for performance - so results must be the same.
Regards, Igor.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page