-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unclear position of coefficients #104
Comments
I come to FFTs from a non-theoretical background, so my understanding of the order is mostly a practical one: The order of the results is the same as if you applied the naive DFT formula:
What's the best way to express this? Should it just say exactly that? |
To confirm is the following correct? Given X = frequency vector of length N from fft: Like the top left image here? |
How about just adding a simple example?
A bit like how it's done for RealFFT: |
What does |
It also needs a short text to go with it. |
Something like this? The FFT output format.In this example Transforming the signal using a 6-point FFT results in a sequence of 6 new complex values: The coefficients are returned ordered by frequency. The first half are the positive frequencies up to I'm not aware of any nice intuitive explanation of what the negative frequencies mean. |
Currently, the output order of the coefficients is documented as:
But this is a very unspecific definition, and could lead to various conclusions, like for example (for an input buffer of size n):
-n/2
up ton/2
(then the order differences between even and oddly sized buffers is unspecified)n/2
, then from-n/2
up to-1
)A better explanation in the documentation would be very helpful. Failing that, a couple examples would also serve the purpose of showing in greater detail the output order.
The text was updated successfully, but these errors were encountered: