Skip to content
Snippets Groups Projects
Commit deeab323 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Clarify fftshift for N is even and odd.

parent 5a503d39
No related branches found
No related tags found
1 merge request!366Resolve RTSD-118
......@@ -212,20 +212,24 @@
-0.5, 0, 0.5 [fs]
. N even, e.g. N = 4:
<---- N = 4 ----->
0 fs/2 fs
| | |
n = 0 1 2 3
0/4 1/4 2/4 3/4 4/4
DC positive negative
<------ N = 4 ------->
0 fs/2 ( fs )
| | ( | )
n = 0 1 2 3 ( | )
0/4 1/4 2/4 3/4 ( 4/4 )
DC positive | negative
|
\--> fftshift([0, 1, 2, 3]) = [2, 3, 0, 1]
. N odd, e.g. N = 5:
<------- N = 5 -------->
0 fs/2 fs
| | |
n = 0 1 2 | 3 4 |
0/5 1/5 2/5 | 3/5 4/5 5/5
0 fs/2 ( fs )
| | ( | )
n = 0 1 2 | 3 4 ( | )
0/5 1/5 2/5 | 3/5 4/5 ( 5/5 )
DC positive | negative
|
\-->fftshift([0, 1, 2, 3, 5]) = [3, 4, 0, 1, 2]
. With K = N // 2:
. N even : DC, K - 1 positive, fs/2, K - 1 negative frequencies
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment