Chapter 9 Computation of the Discrete Fourier Transform - PowerPoint PPT Presentation

1 / 50
About This Presentation
Title:

Chapter 9 Computation of the Discrete Fourier Transform

Description:

Biomedical Signal processing Chapter 9 Computation of the Discrete Fourier Transform Zhongguo Liu Biomedical Engineering School of Control Science and Engineering ... – PowerPoint PPT presentation

Number of Views:368
Avg rating:3.0/5.0
Slides: 51
Provided by: 6649303
Category:

less

Transcript and Presenter's Notes

Title: Chapter 9 Computation of the Discrete Fourier Transform


1
Chapter 9 Computation of the Discrete Fourier
Transform
Biomedical Signal processing
  • Zhongguo Liu
  • Biomedical Engineering
  • School of Control Science and Engineering,
    Shandong University

1
2
Chapter 9 Computation of the Discrete Fourier
Transform
9.0 Introduction 9.1 Efficient Computation of
Discrete Fourier Transform 9.2 The Goertzel
Algorithm 9.3 decimation-in-time FFT
Algorithms 9.4 decimation-in-frequency FFT
Algorithms 9.5 practical considerations(software
realization)
3
9.0 Introduction
  • Implement a convolution of two sequences by the
    following procedure
  • Why not convolve the two sequences directly?
  • There are efficient algorithms called Fast
    Fourier Transform (FFT) that can be orders of
    magnitude more efficient than others.

4
9.1 Efficient Computation of Discrete Fourier
Transform
  • The DFT pair was given as
  • Baseline for computational complexity
  • Each DFT coefficient requires
  • N complex multiplications
  • N-1 complex additions
  • All N DFT coefficients require
  • N2 complex multiplications
  • N(N-1) complex additions

4
5
9.1 Efficient Computation of Discrete Fourier
Transform
  • Complexity in terms of real operations
  • 4N2 real multiplications
  • 2N(N-1) real additions (approximate 2N2)

5
6
9.1 Efficient Computation of Discrete Fourier
Transform
  • Most fast methods are based on Periodicity
    properties
  • Periodicity in n and k Conjugate symmetry

6
7
9.2 The Goertzel Algorithm
  • Makes use of the periodicity
  • Multiply DFT equation with this factor
  • using xn0 for nlt0 and ngtN-1
  • Xk can be viewed as the output of a filter to
    the input xn
  • Impulse response of filter
  • Xk is the output of the filter at time nN

7
8
9.2 The Goertzel Algorithm
  • Goertzel Filter
  • Computational complexity
  • 4N real multiplications 4N real additions
  • Slightly less efficient than the direct method

8
9
Second Order Goertzel Filter
  • Goertzel Filter
  • Multiply both numerator and denominator

9
10
Second Order Goertzel Filter
  • Complexity for one DFT coefficient ( x(n) is
    complex sequence).
  • Poles 2N real multiplications and 4N real
    additions
  • Zeros Need to be implement only once
  • 4 real multiplications and 4 real additions
  • Complexity for all DFT coefficients
  • Each pole is used for two DFT coefficients
  • Approximately N2 real multiplications and 2N2
    real additions

10
11
Second Order Goertzel Filter
  • If do not need to evaluate all N DFT coefficients
  • Goertzel Algorithm is more efficient than FFT if
  • less than M DFT coefficients are needed,M lt log2N

11
12
9.3 decimation-in-time FFT Algorithms
  • Makes use of both periodicity and symmetry
  • Consider special case of N an integer power of 2
  • Separate xn into two sequence of length N/2
  • Even indexed samples in the first sequence
  • Odd indexed samples in the other sequence

12
13
9.3 decimation-in-time FFT Algorithms
  • Substitute variables n2r for n even and n2r1
    for odd
  • Gk and Hk are the N/2-point DFTs of each
    subsequence

13
14
9.3 decimation-in-time FFT Algorithms
  • Gk and Hk are the N/2-point DFTs of each
    subsequence

14
15
8-point DFT using decimation-in-time
Figure 9.3
16
computational complexity
  • Two N/2-point DFTs
  • 2(N/2)2 complex multiplications
  • 2(N/2)2 complex additions
  • Combining the DFT outputs
  • N complex multiplications
  • N complex additions
  • Total complexity
  • N2/2N complex multiplications
  • N2/2N complex additions
  • More efficient than direct DFT

16
17
9.3 decimation-in-time FFT Algorithms
  • Repeat same process , Divide N/2-point DFTs into
  • Two N/4-point DFTs
  • Combine outputs

N8
17
18
9.3 decimation-in-time FFT Algorithms
  • After two steps of decimation in time
  • Repeat until were left with two-point DFTs

18
19
9.3 decimation-in-time FFT Algorithms
  • flow graph for 8-point decimation in time
  • Complexity
  • Nlog2N complex multiplications and additions

19
20
Butterfly Computation
  • Flow graph constitutes of butterflies
  • We can implement each butterfly with one
    multiplication
  • Final complexity for decimation-in-time FFT
  • (N/2)log2N complex multiplications and additions

20
21
9.3 decimation-in-time FFT Algorithms
  • Final flow graph for 8-point decimation in time
  • Complexity
  • (Nlog2N)/2 complex multiplications and Nlog2N
    additions

21
22
9.3.1 In-Place Computation????
  • Decimation-in-time flow graphs require two sets
    of registers
  • Input and output for each stage

22
23
9.3.1 In-Place Computation????
  • Note the arrangement of the input indices
  • Bit reversed indexing(????)

23
24
cause of bit-reversed order
binary coding for position 000 001 010 011 100
101 110 111
Figure 9.13
25
9.3.2 Alternative forms
  • Note the arrangement of the input indices
  • Bit reversed indexing(????)

25
26
9.3.2 Alternative forms
strongpointin-place computations shortcomingnon-
sequential access of data
Figure 9.14
27
Figure 9.15
shortcomingnot in-place computation
non-sequential access of data
28
Figure 9.16
shortcomingnot in-place computation
strongpoint sequential access of data
29
9.3 decimation-in-time FFT Algorithms
  • Substitute variables n2r for n even and n2r1
    for odd

Review
  • Gk and Hk are the N/2-point DFTs of each
    subsequence

29
30
9.3.1 In-Place Computation????
  • Bit reversed indexing(????)

30
31
9.3.2 Alternative forms
strongpointin-place computations shortcomingnon-
sequential access of data
Figure 9.14
32
9.4 Decimation-In-Frequency FFT Algorithm
  • The DFT equation
  • Split the DFT equation into even and odd
    frequency indexes
  • Substitute variables

32
33
9.4 Decimation-In-Frequency FFT Algorithm
  • The DFT equation

33
34
  • decimation-in-frequency decomposition of an
    N-point DFT to N/2-point DFT

34
35
  • decimation-in-frequency decomposition of an
    8-point DFT to four 2-point DFT

35
36
  • 2-point DFT

36
37
(No Transcript)
38
(No Transcript)
39
(No Transcript)
40
(No Transcript)
41
  • Final flow graph for 8-point DFT decimation in
    frequency

41
42
9.4.1 In-Place Computation????
DIF FFT
DIT FFT
42
43
9.4.1 In-Place Computation????
DIF FFT
DIT FFT
43
44
9.4.2 Alternative forms
  • decimation-in-frequecy Butterfly Computation
  • decimation-in-time Butterfly Computation

44
45
The DIF FFT is the transpose of the DIT FFT
DIF FFT
DIT FFT
45
46
9.4.2 Alternative forms
DIF FFT
DIT FFT
47
9.4.2 Alternative forms
DIF FFT
DIT FFT
48
Figure 9.24 erratum
49
9.4.2 Alternative forms
DIF FFT
DIT FFT
50
Chapter 9 HW
  • 9.1, 9.2, 9.3,

50
???
???
? ?
Write a Comment
User Comments (0)
About PowerShow.com