Closed harrisosserman closed 5 years ago
Hello!
This is a great question, and I'm sorry for confusion. The output is always an array of complex numbers. For the realTransform
, only left half of it will be filled and each complex number in that half would have zero imaginary part.
Does this explanation make more sense?
Thanks again!
@indutny that makes a lot of sense! I'll look at only the left half of the output array and treat those as the real part of the Fourier Transform output.
Really appreciate your quick response :)
You're very welcome!
If you feel like the description of this method in the README could be improved, please do not hesitate to open a PR :wink:
@indutny my pleasure: https://github.com/indutny/fft.js/pull/11
My input data has all real numbers and I am trying to do a
realTransform
on the input. The docs have an inconsistency, and I'm not sure which part of the output array to look at to get the real value output.If I only want to look at the real (non-imaginary) output values, do I look at the left half or the right half of the output array?
Thank you!