Архитектура Аудит Военная наука Иностранные языки Медицина Металлургия Метрология Образование Политология Производство Психология Стандартизация Технологии |
The 1-D Radix-2 FFT Algorithms
We part the vector into two vectors by choosing the even and odd elements separately (Fig. 2.21):
gˆ v = . gn exp .− 2 π i nv Σ n=0
N/2− 1
g2n exp .− 2 π i 2 nv Σ + n.=0 g2n+1 exp .− 2 π i ( 2 n + 1 )v Σ (2.85) N/2− 1 N/2− 1 = . g2n exp.− 2 π i nv Σ + exp.− 2 π i v Σ . g2n+1 exp.− 2 π i nv Σ . n=0 N/2 N n=0 N/2
2.5 Fast Algorithms for Unitary Transforms 67 All sampling points Even sampling points Odd sampling points
Figure 2.21: Decomposition of a vector into two vectors containing the even and odd sampling points.
phase factor results from the shift theorem, since the odd elements are shifted one place to the left.
(Fig. 2.21). Taking the odd sampling points, the function shows a phase shift of π /4. This phase shift is exactly compensated by the phase factor in Eq. (2.85): exp(− 2π iv/N) = exp(− π i/4).
Making use of this symmetry we can write gˆ v = egˆ v + w− v o e v o gˆ v 0 ≤ v < N/2. (2.86)
gˆ v − w− N gˆ v.
{2, 6, 10, ···, N/2 − 2}, respectively. 68 2 Image Representation
+ + W g^ 000 g4 100
-1 + 0
g2 010 -2
g6 110 -1 + i + + W ^g g1 + + -W0
001 g5 -1 + -i + + -W g^ 101 g3 011
+ -1 + 5
g7 111 -1 + i + + -W g7
Figure 2.22: Signal fl ow diagram of the radix-2 decimation-in-time Fourier trans- form algorithm for N = 8; for further explanation, see text.
In the last step, we decompose a vector with two elements into two vectors with one element. As the DFT of a single-element vector is an identical operation Eq. (2.29), no further calculations are necessary.
gˆ 0 = g0 + g1 gˆ 0+N/2 = gˆ 1 = g0 − g1. (2.87)
As a result of the decomposition, the elements of the vectors are arranged in a new order. That is all that is performed in the decomposi- tion steps. No computations are required. We can easily understand the new ordering scheme if we represent the indices of the vector with dual numbers. In the fi rst decomposition step we order the elements accord- ing to the least signifi cant bit, fi rst the even elements (least signifi cant bit is zero), then the odd elements (least signifi cant bit is one). With each further decomposition step, the bit that governs the sorting is shifted one place to the left. In the end, we obtain a sorting in which the ordering of the bits is completely reversed. The element with the index 1 = 0012, 2.5 Fast Algorithms for Unitary Transforms 69
0
4
Figure 2.23: Signal fl ow path for the calculation of gˆ 0 and gˆ 4 with the decimation- in-time FFT algorithm for an 8-dimensional vector.
Further steps on the right side of the signal fl ow diagram show the stepwise composition to vectors of double the size. The composition to the 2-dimensional vectors is given by Eq. (2.87). The operations are pictured with arrows and points having the following meaning: points represent a fi gure, an element of the vector. These points are called the nodes of the signal fl ow graph. The arrows transfer the fi gure from one point to another. During the transfer the fi gure is multiplied by the factor written close to the arrow. If the associated factor is missing, no multiplication takes place. A value of a knot is the sum of the values transferred from the previous level. The elementary operation of the FFT algorithm involves only two knots. The lower knot is multiplied with a phase factor. The sum and diff erence of the two values are then transferred to the upper and lower 70 2 Image Representation
knot, respectively. Because of the crossover of the signal paths, this operation is denoted as a butterfl y operation. We gain further insight into the FFT algorithm if we trace back the calculation of a single element. Figure 2.23 shows the signal paths for gˆ 0 and gˆ 4. For each level we go back the number of knots contributing to the calculation doubles. In the last stage all the elements are involved. The signal path for gˆ 0 and gˆ 4 are identical but for the last stage, thus nicely demonstrating the effi ciency of the FFT algorithm. All phase factors in the signal path for gˆ 0 are one. As expected from Eq. (2.29), gˆ 0 contains the sum of all the elements of the vector g, gˆ 0 = [(g0 + g4) + (g2 + g6)] + [(g1 + g5) + (g3 + g7)], while in the last stage for gˆ 4 the addition is replaced by a subtraction gˆ 4 = [(g0 + g4) + (g2 + g6)] − [(g1 + g5) + (g3 + g7)].
= 1 0 0 0 –1 0 0 0
gˆ 5
1 0 0 0 1 0 0 0 − w− 3
0 1 0 i 0 0 0 0
0 0 0 0 1 0 –1 0 0 0 0 0 0 1 0 i 1 0 0 0 1 0 0 0 1 0 0 0 –1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 –1 g0 g1 g2
g5
The reader can verify that these transformation matrices refl ect all the properties of a single level of the FFT algorithm. The matrix decom- position emphasizes that the FFT algorithm can also be considered as a clever method to decompose the unitary transformation matrix into sparse partial unitary transforms. 2.5 Fast Algorithms for Unitary Transforms 71
|
Последнее изменение этой страницы: 2019-05-04; Просмотров: 211; Нарушение авторского права страницы