Fourier transform, range of indices

Click For Summary

Discussion Overview

The discussion revolves around the differences in indexing between mathematical literature and numerical Fast Fourier Transforms (FFTs), specifically addressing how indices are assigned to real data versus Fourier space data. The scope includes conceptual clarification and technical explanation regarding the implications of these indexing choices.

Discussion Character

  • Conceptual clarification
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant questions why real data is only shifted in the index while Fourier space data appears 'wrapped around', suggesting a need for clarification on the implications of these indexing choices.
  • Another participant explains that transitioning from mathematical notation to FFT indices involves a simple shift, where negative indices become non-negative indices starting from 0, but does not provide a definitive reason for the difference in treatment between real and Fourier space data.
  • A later reply indicates uncertainty about whether the choice of index is purely definitional or if it has a mathematical basis, reflecting a lack of consensus on the reasoning behind these conventions.
  • One participant corrects a previous statement regarding the operations involved in the frequency conversion, indicating a potential misunderstanding in the mathematical representation.

Areas of Agreement / Disagreement

Participants express uncertainty about whether the differences in indexing are based on definitions or mathematical principles, indicating that the discussion remains unresolved with multiple competing views.

Contextual Notes

There are unresolved assumptions regarding the definitions of "real data" and "Fourier space data," as well as the implications of the periodicity in the context of FFTs.

Derivator
Messages
147
Reaction score
0
hi,

could someone explain the following statement, please?

In the mathematical literature sums in Fourier transformation formulas typically run from
−N to N or N −1. In all numerical FFTs indices run from 0 to N −1. For all the real
data this just implies a shift whereas for data in Fourier space it means that the negative
frequencies are in the second half of the data set as shown below for the case of N=4:
x_0,x_1,x_2,x_3,x_4,x_{-3},x_{-2},x_{-1}​

Why is the real data only shifted, but the Fourier space data is 'wrapped around'?

The only difference should be: exp(k*x*2*i*Pi/N) in reals space vs. exp(-k*x*2*i*Pi/N) in Fourier space. Both have a periodicity of N. So why is there any difference?
 
Mathematics news on Phys.org
For the "real data" (I'm not sure I like this term), going from the described "mathematical literature" notation indices to the FFT indices, -N would become 0, -N + 1 would become 1, etc; this is a simple shift to make it start at 0.

In the Fourier domain for FFTs, the element with index 0 will be the 0 frequency element, then the positive frequency elements are next, and then the negative frequency elements will follow those, beginning with the most negative frequency. If you really want a rationale, having it this way makes some things easier then they might be otherwise. For example locating the 0 frequency element is easy as it is just the element with index 0. Also, converting the index of a positive frequency element to its corresponding frequency is easier this way. The frequency is just index/fstep instead of something such as (index - index0)/fstep.
 
ah, so this index choice is just definition and follows not from any mathematical principle?
 
Oops, those should be multiplications, not divisions.
 
So this is just definition and is not due to any mathematical reason?
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K