<< Chapter < Page Chapter >> Page >

Review of the discrete fourier transform and fft

The discrete Fourier transform (DFT) is defined for a length-N complex data sequence by

X ( k ) = n = 0 N - 1 x ( n ) e - j 2 π n k / N , k = 0 , ... , N - 1

where we use j = - 1 . There are several ways to derive the different fast Fourier transform (FFT)algorithms. It can be done by using index mapping [link] , by matrix factorization, or by polynomial factorization. In this chapter, weonly discuss the matrix factorization approach, and only discuss the so-called radix-2 decimation in time (DIT) variant of the FFT.

Instead of repeating the derivation of the FFT algorithm, we show the block diagram and matrix factorization, in an effort to highlight the basicidea and gain some insight. The block diagram of the last stage of a length-8 radix-2 DIT FFT is shown in [link] . First, the input data are separated into even and odd groups. Then, each group goes through alength-4 DFT block. Finally, butterfly operations are used to combine the shorter DFTs into longer DFTs.

Last Stage of a Length-8 Radix-2 DIT FFT
Last Stage of a Length-8 Radix-2 DIT FFT

The details of the butterfly operations are shown in [link] , where W N i = e - j 2 π i / N is called the twiddle factor . All the twiddle factors are of magnitude one on the unit circle. This is the main reason that there is nocomplexity versus accuracy tradeoff for the classical FFT. Suppose some of the twiddle factors had very small magnitude,then the corresponding branches of the butterfly operations could be dropped (pruned) to reducecomplexity while minimizing the error to be introduced. Of course the error also depends on the value of the data to be multiplied with the twiddlefactors. When the value of the data is unknown, the best way is to cutoff the branches with small twiddle factors.

The computational complexity of the FFT algorithm can be easily established. If we let C F F T ( N ) be the complexity for a length-N FFT, we can show

C F F T ( N ) = O ( N ) + 2 C F F T ( N / 2 ) ,

where O ( N ) denotes linear complexity. The solution to Equation  [link] is well known:

C F F T ( N ) = O ( N log 2 N ) .

This is a classical case where the divide and conquer approach results in very effective solution.

Butterfly Operations in a Radix-2 DIT FFT
Butterfly Operations in a Radix-2 DIT FFT

The matrix point of view gives us additional insight. Let F N be the N × N DFT matrix; i.e., F N ( m , n ) = e - j 2 π m n / N , where m , n { 0 , 1 , ... , N - 1 } . Let S N be the N × N even-odd separation matrix; e.g.,

S 4 = 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 .

Clearly S N ' S N = I N , where I N is the N × N identity matrix. Then the DIT FFT is based on the following matrix factorization,

F N = F N S N ' S N = I N / 2 T N / 2 I N / 2 - T N / 2 F N / 2 0 0 F N / 2 S N ,

where T N / 2 is a diagonal matrix with W N i , i { 0 , 1 , ... , N / 2 - 1 } on the diagonal. We can visualize the above factorization as

where we image the real part of DFT matrices, and the magnitude of the matrices for butterfly operations and even-odd separations. N is taken to be 128 here.

Review of the discrete wavelet transform

In this section, we briefly review the fundamentals of the discrete wavelet transform and introduce the necessary notation for future sections. Thedetails of the DWT have been covered in other chapters.

At the heart of the discrete wavelet transform are a pair of filters h and g — lowpass and highpass respectively. They have to satisfy a set of constraints Figure: Sinc Scaling Function and Wavelet [link] , [link] , [link] . The block diagram of the DWT is shown in [link] . The input data are first filtered by h and g then downsampled. The same building block is further iterated on the lowpass outputs.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Wavelets and wavelet transforms. OpenStax CNX. Aug 06, 2015 Download for free at https://legacy.cnx.org/content/col11454/1.6
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Wavelets and wavelet transforms' conversation and receive update notifications?

Ask