SlideShare une entreprise Scribd logo
1  sur  37
DECIMATION IN
TIME AND FREQUENCY



          Dr. C. Saritha
      Lecturer in Electronics
    SSBN Degree & PG College
        ANANTAPUR
INDEX

 INTRODUCTION TO FFT
 DECIMATION IN TIME(DIT)
 DECIMATION IN FREQUENCY(DIF)
 DIFFERENCES AND SIMILARITIES
Fourier Transform
A   fourier transform is an useful analytical
  tool that is important for many fields of
  application in the digital signal processing.
 In describing the properties of the fourier
  transform and inverse fourier transform, it
  is quite convenient to use the concept of
  time and frequency.
 In image processing applications it plays a

   critical role.
Fast fourier transform
 Fast  fourier transform proposed by Cooley
  and Tukey in 1965.
 The fast fourier transform is a highly
  efficient procedure for computing the DFT
  of a finite series and requires less number
  of computations than that of direct
  evaluation of DFT.
 The FFT is based on decomposition and
  breaking the transform into smaller
  transforms and combining them to get the
  total transform.
Discrete Fourier Transform
  The DFT pair was given as
               N −1                              1 N− 1
     X [ k ] = ∑ x[n]e − j ( 2π / N ) kn   x[n] = ∑ X[k ] e j( 2π / N) kn
                                                 N k=0
               n= 0
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
What is FFT?
 The    fast fourier is an algorithm used to
  compute the DFT. It makes use of the
  symmetry and periodicity properties of
  twiddle factor wN to effectively reduce the
  DFT computation time.
 It is based on the fundamental principle of
  decomposing the computation of DFT of a
  sequence of length N into successively
  smaller DFT.
Symmetry and periodicity

                        kn ∗              − kn
   Symmetry       (W ) = W
                        N                 N
                                      k (n+ N )         (k + N )n
   Periodicity    W    kn
                       N    =W        N           =W    N
                       − kn            k ( N −n)            n( N −k )
                  W    N      =W       N           =W       N

  W   nk
      N    =W    mnk
                 mN    , W       nk
                                 N     =W      nk / m
                                               N /m
                                ( k + N/ 2 )
  W   N
       N/ 2
              = −1,         W   N              = −W     k
                                                        N
 FFT   algorithm provides speed increase
  factors, when compared with direct
  computation of the DFT, of approximately
  64 and 205 for 256 point and 1024 point
  transforms respectively.
 The    number of multiplications and
  additions required to compute N-point DFT
  using radix-2 FFT are Nlog2N and N/2
  log2N respectively.
 Example:

The number of complex multiplications
 required using direct computation is
              N2=642 =4096
The number of complex multiplications
 required using FFT is
           N/2log2 N=64/2log2 64=192
Speed improvement   factor   =4096/192=
 21.33.
FFT Algorithms
    There are basically two types of FFT
     algorithms.
    They are:
1.   Decimation in Time
2.   Decimation in frequency
Decimation in time
 DIT   algorithm is used to calculate the DFT
  of a N-point sequence.
 The idea is to break the N-point sequence
  into two sequences, the DFTs of which
  can be obtained to give the DFT of the
  original N-point sequence.
 Initially the N-point sequence is divided
  into N/2-point sequences xe(n) and x0(n) ,
  which have even and odd numbers of x(n)
  respectively.
 The    N/2-point DFTs of these two
  sequences are evaluated and combined to
  give the N-point DFT.
 Similarly the N/2-point DFTs can be
  expressed as a combination of N/4-point
  DFTs.
 This process is continued until we are left
  with two point DFT.
 This algorithm is called decimation-in-time
  because the sequence x(n) is often split
  into smaller sequences.
Radix-2 DIT- FFT Algorithm
    Radix-2: the sequence length N satisfied:   N = 2L
    L is an integer

  To decompose an N point time domain
signal into N signals each containing a
single point. Each decomposing stage uses
an interlace decomposition, separating the
even- and odd-indexed samples;
   To calculate the N frequency spectra
corresponding to these N time domain
signals.
Radix-2 DIT- FFT Algorithm
1 signal of 16      0   1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
points


2 signals of 8
                    0   2 4 6 8 10 12 14       1   3 5 7 9 11 13 15
points


4 signals of 4      0   4 8 12     2 6 10 14   1   5 9 13   3 7 11 15
points


8 signals of 2
                    0 8     4 12 2 10 6 14     1 9   5 13 3 11 7 15
points


16 signals of 1
                    0   8   4 12   2 10 6 14   1   9 5 13   3 11 7 15
point
Radix-2 DIT- FFT Algorithm
     Algorithm principle
       To divide N-point sequence x(n) into two N/2-point
        sequence x1(r) and x2(r)
                                                          N
x1 ( r ) = x( 2r ); x 2 ( r ) = x ( 2r + 1) , r = 0,1,2,  − 1
                                                          2
       To compute the DFT of x1(r) and x2(r)
          N                       N
            −1                      −1
          2                       2
                                                                   N
X 1 ( k ) = ∑ x1 ( r )W   rk
                          N     = ∑ x ( 2r )W   rk
                                                N         (k = 0 ~   − 1)
           r =0           2       r =0          2                  2
          N                       N
            −1                      −1
          2                       2
                                                                     N
X 2 ( k ) = ∑ x 2 ( r )W   rk
                           N    = ∑ x ( 2r + 1)W     rk
                                                     N      (k = 0 ~   − 1)
           r =0            2      r =0               2               2
   To compute the DFT of N-point sequence x(n)

               N −1                         N −1                          N −1
X ( k ) = ∑ x( n)W          nk
                            N       =       ∑ x(n)W           nk
                                                              N    +      ∑ x(n)W      nk
                                                                                       N
               n= 0                     n = 0 ( even )                 n = 0 ( odd )
    N                       N
      −1                      −1
    2                       2
=   ∑ x ( 2r )W N rk + ∑ x( 2r + 1)W N2 r +1) k
    r =0
                2

                            r =0
                                     (



    N                               N
      −1                              −1
    2                               2
=   ∑ x (r )W
    r =0
           1
                      rk
                      N    +W   k
                                N   ∑ x (r )W
                                    r =0
                                             2
                                                         rk
                                                         N
                      2                                  2

= X 1 (k ) + W N X 2 (k )
               k
                                            ( k = 0,1,2,  N − 1)
N
  X ( k ) = X 1 ( k ) + W X 2 ( k ) ( k = 0,1,  − 1)
                         k
                         N
                                                  2
                                        N
           N                N       (k+ )          N
  X (k + ) = X 1 (k + ) + W N           2
                                          X 2 (k + )
           2                2                      2
                                                  N
  = X 1 (k ) − W N X 2 (k )
                   k
                                     ( k = 0,1,  − 1)
                                                  2


              x1 ( r )        X 1 (k )
x(n)                                            X (k )
              x2 (r )         X 2 (k )
   Butterfly computation flow graph

                                                     N
  X (k ) = X 1 (k ) + W X 2 (k )
                       k
                       N                ( k = 0,1,  − 1)
                                                     2
        N                                            N
  X (k + ) = X 1 (k ) − W N X 2 (k )
                          k
                                         ( k = 0,1,  − 1)
        2                                             2

X 1 (k )                                  X 1 (k ) + W N X 2 (k )
                                                       k




                   k
                  WN
X 2 (k )                                  X 1 (k ) − W N X 2 (k )
                                                       k
                                   −1

There are 1 complex multiplication and 2 complex additions
X 1 ( 0)
           x1 (0) = x (0)                                    X ( 0)
                                        X (1)
           x1 (1) = x ( 2)      N/2-   1
                                                             X (1)
x1 ( r )                        point X ( 2)
           x1 ( 2) = x (4)             1
                                                             X ( 2)
                                DFT
                                        X 1 ( 3)
           x1 ( 3) = x (6)                                   X ( 3)
                                                    0
                                        X 2 ( 0)   WN
           x 2 (0) = x (1)                              −1   X ( 4)
                                                    1
                                        X 2 (1)    WN
           x 2 (1) = x ( 3)     N/2-
                                                        −1   X ( 5)
x2 ( r )                        point   X 2 ( 2)
                                                    2
                                                   WN
           x 2 ( 2) = x ( 5)                            −1   X ( 6)
                                DFT                 3
                                        X 2 ( 3)   WN
           x 2 ( 3) = x ( 7 )                           −1   X (7)


                                          N-point DFT
Radix-2 DIT- FFT Algorithm
  The computation complexity            for N = 2 3
  x (n)                                          X (k )
          2-point
                    Synthesize
           DFT
                    the 2-point
          2-point   DFTs into a
           DFT      4-point DFT    Synthesize
                                   the 4-point
          2-point   Synthesize     DFTs into a
           DFT      the 2-point    8-point DFT
          2-point   DFTs into a
           DFT      4-point DFT


3-stage synthesize, each has N/2 butterfly computation
Radix-2 DIT- FFT Algorithm


•At the end of computation flow graph at any
stage, output variables can be stored in the
same registers previously occupied by the
corresponding input variables.
•This type of memory location sharing is called
in-place computation which results in significant
saving in overall memory requirements.
   The distance between two nodes in a butterfly
    For   N = 2 L there are L stages
             Stage               Distance
            stage 1                    1
            stage 2                    2
            stage 3                    4
               
            stage L                2 L −1
Radix-2 DIT- FFT Algorithm
        Bit-reversed order
In the DFT computation scheme, the DFT samples X(k)
appear at the output in a sequential order while the input
samples x(n) appear in a different order: a bit-reversed
order.
Thus, a sequentially ordered input x(n) must be reordered
appropriately before the fast algorithm can be implemented.
Let m, n represent the sequential and bit-reversed order in
binary forms respectively, then:
m: 000 001 010             011   100   101 110 111
n:   000     100    010       110   001   101   011   111
   Why is the input bit-reversed order

                  n0      n1     n2
                                  0       x (000)   x (0)
                          0
                  0              1        x (100)   x (4)
                                  0
                          1               x (010)   x (2)
x ( n2 n1n0 )                     1       x (110)   x (6)
                                  0
                          0               x (001)   x (1)
                  1               1       x (101)   x (5)
                                  0
                          1               x (011)   x (3)
                                  1
                                          x (111)   x (7 )
   How to get the bit-reversed order

    Let n represent the natural order, the         ˆ
                                                   n represent the
    bit-reversed order, then:

               if n > n ,
                  ˆ              x ( n) ⇔ x ( n)
                                              ˆ

        A(0)    A(1) A( 2) A( 3)          A(4) A(5) A(6) A(7 )
n       x (0) x (1)     x ( 2)   x ( 3)   x ( 4)    x ( 5)   x ( 6)   x(7)

ˆ
n       x ( 0) x ( 4)   x ( 2)   x ( 6)   x (1)     x ( 5)   x ( 3)   x(7)
Decimation-In-Frequency
 It is a popular form of FFT algorithm.
 In this the output sequence x(k) is divided
  into smaller and smaller subsequences,
  that is why the name decimation in
  frequency,
 Initially the input sequence x(n) is divided
  into two sequences x1(n) and x2(n)
  consisting of the first n/2 samples of x(n)
  and the last n/2 samples of x(n)
  respectively
Radix-2 DIF- FFT Algorithm
 Algorithm principle
   To divide N-point sequence x(n) into two N/2-point
    sequence
                                         N
The former N/2-point    x( n),    0 ≤ n ≤ −1
                                         2
                               N         N
The latter N/2-point    x( n + ), 0 ≤ n ≤ − 1
                               2         2
x (n)    0       1        2          3     4           5    6       7

         0       1        2          3     4           5    6       7

                              butterfly computation

         0       1        2          3     0           1    2       3

         0       1        2          3     0           1    2          3

             butterfly computation             butterfly computation

         0       1        0          1     0           1    0          1

         0       1         0         1    0        1         0         1

         butterfly         butterfly      butterfly          butterfly

X (k )   0       4         2         6    1        5         3         7
   To compute the DFT of N-point sequence x(n)

                                    N
                                      −1
            N −1                    2                    N −1
X ( k ) = ∑ x ( n)W       nk
                          N     =   ∑ x(n)W   nk
                                              N    +     ∑ x(n)W   nk
                                                                   N
            n=0                     n=0                     N
                                                       n=
                                                            2
    N                    N
      −1                   −1
    2                    2                        N
                                   N       ( n+
    ∑ x(n)W             + ∑ x ( n + )W N
                                                    )k
=                  nk
                   N
                                                  2

    n=0                   n=0      2
    N
      −1
    2            N
                          N  nk
= ∑  x ( n) + W N x ( n + )W N
                    k
                  2

  n=0                    2 
    N
      −1

= ∑
    2
       x ( n) + ( −1) k x ( n + N )W nk            ( k = 0,1,  N − 1)
  n=0                           2  N
                                    
Radix-2 DIF- FFT Algorithm
           To separate the even and odd numbered samples
            of X(k)
                                                N
         let k = 2r , k = 2r + 1, ( r = 0,1,  , − 1)
                                                2
                N
                  −1
                2
                     x ( n) + x ( n + N )W nr ( r = 0,1,  N − 1)
   X ( 2r ) =   ∑
                n=0                   2  N
                                           2                2
                N
                  −1
                2
X ( 2r + 1) = ∑   x ( n) − x ( n + N )W nW nr ( r = 0,1,  N − 1)
              n=0                   2  N N 2               2
Radix-2 DIF- FFT Algorithm

                                  N
     x1 ( n) = x ( n) + x ( n + 2 )
                                                                 N
let                                                    n = 0,1,  − 1
                                  N  n                          2
     x 2 ( n) =  x ( n) − x ( n + )W N
    
                                  2 
                    N
                      −1
                    2
                                                            N
       X ( 2r ) =   ∑ x (n)W
                    n= 0
                            1
                                      nr
                                      N
                                      2
                                                ( r = 0,1,  − 1)
                                                            2
                           N
                             −1
                           2
                                                            N
       X ( 2r + 1) =       ∑ x (n)W
                           n=0
                                  2
                                           nr
                                           N
                                           2
                                                ( r = 0,1,  − 1)
                                                            2
Radix-2 DIF- FFT Algorithm
          Butterfly computation flow graph


   x(n)                                                       N
                                      x1 ( n) = x( n) + x( n + )
                                                              2

                                n
      N                        WN                                   N  n
x( n + )                              x 2 ( n ) =  x ( n ) − x ( n + ) W N
      2              −1                                             2 

 There are 1 complex multiplication and 2 complex additions
for N = 2 3

                             x1 (0)
x ( 0)                                          X ( 0)
                             x1 (1)
x(1)                                    N/2-    X ( 2)
                                        point
                             x1 ( 2)
x ( 2)                                          X ( 4)
                                        DFT
                             x1 ( 3)
x ( 3)                                          X ( 6)
                         0
                        WN   x 2 ( 0)
x ( 4)             −1                           X (1)
                         1
                        WN   x 2 (1)
x ( 5)                                  N/2-    X ( 3)
                   −1
                         2
                        WN   x 2 ( 2)   point
x ( 6)             −1                           X ( 5)
                         3              DFT
                        WN   x 2 ( 3)
x(7)               −1                           X (7)
for N = 2 3

x ( 0)                                                  X ( 0)
                                                    0
                                                   WN
x (1)                                                   X ( 4)
                                          0
                                              −1
                                         WN
x ( 2)                                                  X ( 2)
                                    −1    2         0
                                         WN        WN
x ( 3)                                                  X ( 6)
                                    −1        −1
                                0
                            W   N
x ( 4)                                                  X (1)
                       −1    1                      0
                            WN                     WN
x ( 5)                                                  X ( 5)
                       −1                     −1
                             2            0
                            WN           WN
x ( 6)                                                  X ( 3)
                       −1           −1
                             3            2         0
                            WN           WN        WN
x(7)                                                    X (7)
                       −1           −1        −1
Radix-2 DIF- FFT Algorithm
     The comparison of DIT and DIF
   The order of samples
DIT-FFT: the input is bit- reversed order and the output
is natural order
DIF-FFT: the input is natural order and the output is bit-
reversed order

  The butterfly computation
DIT-FFT: multiplication is done before additions
DIF-FFT: multiplication is done after additions
Radix-2 DIF- FFT Algorithm

   Both DIT-FFT and DIF-FFT have the identical
    computation complexity. i.e. for N = 2 L , there are
    total L stages and each has N/2 butterfly
    computation. Each butterfly computation has 1
    multiplication and 2 additions.
   Both DIT-FFT and DIF-FFT have the characteristic
    of in-place computation.
   A DIT-FFT flow graph can be transposed to a DIF-
    FFT flow graph and vice versa.
Decimation in time and frequency

Contenu connexe

Tendances

Computing DFT using Matrix method
Computing DFT using Matrix methodComputing DFT using Matrix method
Computing DFT using Matrix methodSarang Joshi
 
Pulse Modulation ppt
Pulse Modulation pptPulse Modulation ppt
Pulse Modulation pptsanjeev2419
 
Filter- IIR - Digital signal processing(DSP)
Filter- IIR - Digital signal processing(DSP)Filter- IIR - Digital signal processing(DSP)
Filter- IIR - Digital signal processing(DSP)tamil arasan
 
Coherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASKCoherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASKnaimish12
 
Signal classification of signal
Signal classification of signalSignal classification of signal
Signal classification of signal001Abhishek1
 
DIGITAL SIGNAL PROCESSING
DIGITAL SIGNAL PROCESSINGDIGITAL SIGNAL PROCESSING
DIGITAL SIGNAL PROCESSINGSnehal Hedau
 
Microwave oscillator design
Microwave oscillator designMicrowave oscillator design
Microwave oscillator designImane Haf
 
NYQUIST CRITERION FOR ZERO ISI
NYQUIST CRITERION FOR ZERO ISINYQUIST CRITERION FOR ZERO ISI
NYQUIST CRITERION FOR ZERO ISIFAIZAN SHAFI
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingAnkur Mahajan
 
M ary psk modulation
M ary psk modulationM ary psk modulation
M ary psk modulationAhmed Diaa
 
Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)Gourab Ghosh
 
Digital Communication: Information Theory
Digital Communication: Information TheoryDigital Communication: Information Theory
Digital Communication: Information TheoryDr. Sanjay M. Gulhane
 
Windowing techniques of fir filter design
Windowing techniques of fir filter designWindowing techniques of fir filter design
Windowing techniques of fir filter designRohan Nagpal
 

Tendances (20)

Computing DFT using Matrix method
Computing DFT using Matrix methodComputing DFT using Matrix method
Computing DFT using Matrix method
 
Pulse Modulation ppt
Pulse Modulation pptPulse Modulation ppt
Pulse Modulation ppt
 
Filter- IIR - Digital signal processing(DSP)
Filter- IIR - Digital signal processing(DSP)Filter- IIR - Digital signal processing(DSP)
Filter- IIR - Digital signal processing(DSP)
 
Coherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASKCoherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASK
 
Signal classification of signal
Signal classification of signalSignal classification of signal
Signal classification of signal
 
DIGITAL SIGNAL PROCESSING
DIGITAL SIGNAL PROCESSINGDIGITAL SIGNAL PROCESSING
DIGITAL SIGNAL PROCESSING
 
Polar Plot
Polar PlotPolar Plot
Polar Plot
 
Microwave oscillator design
Microwave oscillator designMicrowave oscillator design
Microwave oscillator design
 
Chebyshev filter
Chebyshev filterChebyshev filter
Chebyshev filter
 
Chap 5
Chap 5Chap 5
Chap 5
 
Multirate DSP
Multirate DSPMultirate DSP
Multirate DSP
 
NYQUIST CRITERION FOR ZERO ISI
NYQUIST CRITERION FOR ZERO ISINYQUIST CRITERION FOR ZERO ISI
NYQUIST CRITERION FOR ZERO ISI
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacing
 
Sampling
SamplingSampling
Sampling
 
Butterworth filter
Butterworth filterButterworth filter
Butterworth filter
 
Introduction to equalization
Introduction to equalizationIntroduction to equalization
Introduction to equalization
 
M ary psk modulation
M ary psk modulationM ary psk modulation
M ary psk modulation
 
Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)
 
Digital Communication: Information Theory
Digital Communication: Information TheoryDigital Communication: Information Theory
Digital Communication: Information Theory
 
Windowing techniques of fir filter design
Windowing techniques of fir filter designWindowing techniques of fir filter design
Windowing techniques of fir filter design
 

Similaire à Decimation in time and frequency

Chapter 9 computation of the dft
Chapter 9 computation of the dftChapter 9 computation of the dft
Chapter 9 computation of the dftmikeproud
 
Dsp U Lec10 DFT And FFT
Dsp U   Lec10  DFT And  FFTDsp U   Lec10  DFT And  FFT
Dsp U Lec10 DFT And FFTtaha25
 
WAVELET-PACKET-BASED ADAPTIVE ALGORITHM FOR SPARSE IMPULSE RESPONSE IDENTIFI...
WAVELET-PACKET-BASED ADAPTIVE ALGORITHM FOR  SPARSE IMPULSE RESPONSE IDENTIFI...WAVELET-PACKET-BASED ADAPTIVE ALGORITHM FOR  SPARSE IMPULSE RESPONSE IDENTIFI...
WAVELET-PACKET-BASED ADAPTIVE ALGORITHM FOR SPARSE IMPULSE RESPONSE IDENTIFI...bermudez_jcm
 
Signals and Systems Formula Sheet
Signals and Systems Formula SheetSignals and Systems Formula Sheet
Signals and Systems Formula SheetHaris Hassan
 
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier TransformAmr E. Mohamed
 
ANISOTROPIC SURFACES DETECTION USING INTENSITY MAPS ACQUIRED BY AN AIRBORNE L...
ANISOTROPIC SURFACES DETECTION USING INTENSITY MAPS ACQUIRED BY AN AIRBORNE L...ANISOTROPIC SURFACES DETECTION USING INTENSITY MAPS ACQUIRED BY AN AIRBORNE L...
ANISOTROPIC SURFACES DETECTION USING INTENSITY MAPS ACQUIRED BY AN AIRBORNE L...grssieee
 
lec08_computation_of_DFT.pdf
lec08_computation_of_DFT.pdflec08_computation_of_DFT.pdf
lec08_computation_of_DFT.pdfshannlevia123
 
Testing the Stability of GPS Oscillators within Serbian Permanent GPS Station...
Testing the Stability of GPS Oscillators within Serbian Permanent GPS Station...Testing the Stability of GPS Oscillators within Serbian Permanent GPS Station...
Testing the Stability of GPS Oscillators within Serbian Permanent GPS Station...vogrizovic
 
NMR Spectroscopy
NMR SpectroscopyNMR Spectroscopy
NMR Spectroscopyclayqn88
 

Similaire à Decimation in time and frequency (20)

Chapter 9 computation of the dft
Chapter 9 computation of the dftChapter 9 computation of the dft
Chapter 9 computation of the dft
 
Dsp U Lec10 DFT And FFT
Dsp U   Lec10  DFT And  FFTDsp U   Lec10  DFT And  FFT
Dsp U Lec10 DFT And FFT
 
03 image transform
03 image transform03 image transform
03 image transform
 
Dsp lecture vol 2 dft & fft
Dsp lecture vol 2 dft & fftDsp lecture vol 2 dft & fft
Dsp lecture vol 2 dft & fft
 
WAVELET-PACKET-BASED ADAPTIVE ALGORITHM FOR SPARSE IMPULSE RESPONSE IDENTIFI...
WAVELET-PACKET-BASED ADAPTIVE ALGORITHM FOR  SPARSE IMPULSE RESPONSE IDENTIFI...WAVELET-PACKET-BASED ADAPTIVE ALGORITHM FOR  SPARSE IMPULSE RESPONSE IDENTIFI...
WAVELET-PACKET-BASED ADAPTIVE ALGORITHM FOR SPARSE IMPULSE RESPONSE IDENTIFI...
 
Monopole zurich
Monopole zurichMonopole zurich
Monopole zurich
 
Signals and Systems Formula Sheet
Signals and Systems Formula SheetSignals and Systems Formula Sheet
Signals and Systems Formula Sheet
 
Dft
DftDft
Dft
 
Semi-Magic Squares From Snake-Shaped Matrices
Semi-Magic Squares From Snake-Shaped MatricesSemi-Magic Squares From Snake-Shaped Matrices
Semi-Magic Squares From Snake-Shaped Matrices
 
S 7
S 7S 7
S 7
 
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
 
It 05104 digsig_1
It 05104 digsig_1It 05104 digsig_1
It 05104 digsig_1
 
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
 
ANISOTROPIC SURFACES DETECTION USING INTENSITY MAPS ACQUIRED BY AN AIRBORNE L...
ANISOTROPIC SURFACES DETECTION USING INTENSITY MAPS ACQUIRED BY AN AIRBORNE L...ANISOTROPIC SURFACES DETECTION USING INTENSITY MAPS ACQUIRED BY AN AIRBORNE L...
ANISOTROPIC SURFACES DETECTION USING INTENSITY MAPS ACQUIRED BY AN AIRBORNE L...
 
lec08_computation_of_DFT.pdf
lec08_computation_of_DFT.pdflec08_computation_of_DFT.pdf
lec08_computation_of_DFT.pdf
 
Math report
Math reportMath report
Math report
 
Ch13
Ch13Ch13
Ch13
 
Testing the Stability of GPS Oscillators within Serbian Permanent GPS Station...
Testing the Stability of GPS Oscillators within Serbian Permanent GPS Station...Testing the Stability of GPS Oscillators within Serbian Permanent GPS Station...
Testing the Stability of GPS Oscillators within Serbian Permanent GPS Station...
 
NMR Spectroscopy
NMR SpectroscopyNMR Spectroscopy
NMR Spectroscopy
 
lec_3.pdf
lec_3.pdflec_3.pdf
lec_3.pdf
 

Plus de SARITHA REDDY

Unit iv microcontrollers final
Unit iv microcontrollers finalUnit iv microcontrollers final
Unit iv microcontrollers finalSARITHA REDDY
 
Introduction to microprocessors notes
Introduction to microprocessors notesIntroduction to microprocessors notes
Introduction to microprocessors notesSARITHA REDDY
 
8051 data types and directives
8051 data types and directives8051 data types and directives
8051 data types and directivesSARITHA REDDY
 
Unit ii microcontrollers final
Unit ii microcontrollers finalUnit ii microcontrollers final
Unit ii microcontrollers finalSARITHA REDDY
 
Introduction to microprocessor notes
Introduction to microprocessor notesIntroduction to microprocessor notes
Introduction to microprocessor notesSARITHA REDDY
 
8051 data type and directives
8051 data type and directives8051 data type and directives
8051 data type and directivesSARITHA REDDY
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051SARITHA REDDY
 
I o ports and timers of 8051
I o ports and timers of 8051I o ports and timers of 8051
I o ports and timers of 8051SARITHA REDDY
 
Mos and cmos technology
Mos and cmos technologyMos and cmos technology
Mos and cmos technologySARITHA REDDY
 
Clampers and clippers
Clampers and clippersClampers and clippers
Clampers and clippersSARITHA REDDY
 
Electro Magnetic Wave Propagation
Electro Magnetic Wave PropagationElectro Magnetic Wave Propagation
Electro Magnetic Wave PropagationSARITHA REDDY
 
Satellite communications
Satellite communicationsSatellite communications
Satellite communicationsSARITHA REDDY
 
Electronics in daily life
Electronics in daily lifeElectronics in daily life
Electronics in daily lifeSARITHA REDDY
 
BSc I year practicals
BSc I year practicalsBSc I year practicals
BSc I year practicalsSARITHA REDDY
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuitsSARITHA REDDY
 
Applications of op amps
Applications of op ampsApplications of op amps
Applications of op ampsSARITHA REDDY
 

Plus de SARITHA REDDY (20)

Unit iv microcontrollers final
Unit iv microcontrollers finalUnit iv microcontrollers final
Unit iv microcontrollers final
 
Introduction to microprocessors notes
Introduction to microprocessors notesIntroduction to microprocessors notes
Introduction to microprocessors notes
 
8051 data types and directives
8051 data types and directives8051 data types and directives
8051 data types and directives
 
Unit ii microcontrollers final
Unit ii microcontrollers finalUnit ii microcontrollers final
Unit ii microcontrollers final
 
Introduction to microprocessor notes
Introduction to microprocessor notesIntroduction to microprocessor notes
Introduction to microprocessor notes
 
8051 data type and directives
8051 data type and directives8051 data type and directives
8051 data type and directives
 
RT linux
RT linuxRT linux
RT linux
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
I o ports and timers of 8051
I o ports and timers of 8051I o ports and timers of 8051
I o ports and timers of 8051
 
Mos and cmos technology
Mos and cmos technologyMos and cmos technology
Mos and cmos technology
 
Logic families
Logic familiesLogic families
Logic families
 
Clampers and clippers
Clampers and clippersClampers and clippers
Clampers and clippers
 
Linked lists
Linked listsLinked lists
Linked lists
 
Arrays
ArraysArrays
Arrays
 
Electro Magnetic Wave Propagation
Electro Magnetic Wave PropagationElectro Magnetic Wave Propagation
Electro Magnetic Wave Propagation
 
Satellite communications
Satellite communicationsSatellite communications
Satellite communications
 
Electronics in daily life
Electronics in daily lifeElectronics in daily life
Electronics in daily life
 
BSc I year practicals
BSc I year practicalsBSc I year practicals
BSc I year practicals
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Applications of op amps
Applications of op ampsApplications of op amps
Applications of op amps
 

Decimation in time and frequency

  • 1. DECIMATION IN TIME AND FREQUENCY Dr. C. Saritha Lecturer in Electronics SSBN Degree & PG College ANANTAPUR
  • 2. INDEX  INTRODUCTION TO FFT  DECIMATION IN TIME(DIT)  DECIMATION IN FREQUENCY(DIF)  DIFFERENCES AND SIMILARITIES
  • 3. Fourier Transform A fourier transform is an useful analytical tool that is important for many fields of application in the digital signal processing.  In describing the properties of the fourier transform and inverse fourier transform, it is quite convenient to use the concept of time and frequency.  In image processing applications it plays a critical role.
  • 4. Fast fourier transform  Fast fourier transform proposed by Cooley and Tukey in 1965.  The fast fourier transform is a highly efficient procedure for computing the DFT of a finite series and requires less number of computations than that of direct evaluation of DFT.  The FFT is based on decomposition and breaking the transform into smaller transforms and combining them to get the total transform.
  • 5. Discrete Fourier Transform The DFT pair was given as N −1 1 N− 1 X [ k ] = ∑ x[n]e − j ( 2π / N ) kn x[n] = ∑ X[k ] e j( 2π / N) kn N k=0 n= 0 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
  • 6. What is FFT?  The fast fourier is an algorithm used to compute the DFT. It makes use of the symmetry and periodicity properties of twiddle factor wN to effectively reduce the DFT computation time.  It is based on the fundamental principle of decomposing the computation of DFT of a sequence of length N into successively smaller DFT.
  • 7. Symmetry and periodicity kn ∗ − kn Symmetry (W ) = W N N k (n+ N ) (k + N )n Periodicity W kn N =W N =W N − kn k ( N −n) n( N −k ) W N =W N =W N W nk N =W mnk mN , W nk N =W nk / m N /m ( k + N/ 2 ) W N N/ 2 = −1, W N = −W k N
  • 8.  FFT algorithm provides speed increase factors, when compared with direct computation of the DFT, of approximately 64 and 205 for 256 point and 1024 point transforms respectively.  The number of multiplications and additions required to compute N-point DFT using radix-2 FFT are Nlog2N and N/2 log2N respectively.
  • 9.  Example: The number of complex multiplications required using direct computation is N2=642 =4096 The number of complex multiplications required using FFT is N/2log2 N=64/2log2 64=192 Speed improvement factor =4096/192= 21.33.
  • 10. FFT Algorithms  There are basically two types of FFT algorithms.  They are: 1. Decimation in Time 2. Decimation in frequency
  • 11. Decimation in time  DIT algorithm is used to calculate the DFT of a N-point sequence.  The idea is to break the N-point sequence into two sequences, the DFTs of which can be obtained to give the DFT of the original N-point sequence.  Initially the N-point sequence is divided into N/2-point sequences xe(n) and x0(n) , which have even and odd numbers of x(n) respectively.
  • 12.  The N/2-point DFTs of these two sequences are evaluated and combined to give the N-point DFT.  Similarly the N/2-point DFTs can be expressed as a combination of N/4-point DFTs.  This process is continued until we are left with two point DFT.  This algorithm is called decimation-in-time because the sequence x(n) is often split into smaller sequences.
  • 13. Radix-2 DIT- FFT Algorithm Radix-2: the sequence length N satisfied: N = 2L L is an integer  To decompose an N point time domain signal into N signals each containing a single point. Each decomposing stage uses an interlace decomposition, separating the even- and odd-indexed samples;  To calculate the N frequency spectra corresponding to these N time domain signals.
  • 14. Radix-2 DIT- FFT Algorithm 1 signal of 16 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 points 2 signals of 8 0 2 4 6 8 10 12 14 1 3 5 7 9 11 13 15 points 4 signals of 4 0 4 8 12 2 6 10 14 1 5 9 13 3 7 11 15 points 8 signals of 2 0 8 4 12 2 10 6 14 1 9 5 13 3 11 7 15 points 16 signals of 1 0 8 4 12 2 10 6 14 1 9 5 13 3 11 7 15 point
  • 15. Radix-2 DIT- FFT Algorithm  Algorithm principle  To divide N-point sequence x(n) into two N/2-point sequence x1(r) and x2(r) N x1 ( r ) = x( 2r ); x 2 ( r ) = x ( 2r + 1) , r = 0,1,2,  − 1 2  To compute the DFT of x1(r) and x2(r) N N −1 −1 2 2 N X 1 ( k ) = ∑ x1 ( r )W rk N = ∑ x ( 2r )W rk N (k = 0 ~ − 1) r =0 2 r =0 2 2 N N −1 −1 2 2 N X 2 ( k ) = ∑ x 2 ( r )W rk N = ∑ x ( 2r + 1)W rk N (k = 0 ~ − 1) r =0 2 r =0 2 2
  • 16. To compute the DFT of N-point sequence x(n) N −1 N −1 N −1 X ( k ) = ∑ x( n)W nk N = ∑ x(n)W nk N + ∑ x(n)W nk N n= 0 n = 0 ( even ) n = 0 ( odd ) N N −1 −1 2 2 = ∑ x ( 2r )W N rk + ∑ x( 2r + 1)W N2 r +1) k r =0 2 r =0 ( N N −1 −1 2 2 = ∑ x (r )W r =0 1 rk N +W k N ∑ x (r )W r =0 2 rk N 2 2 = X 1 (k ) + W N X 2 (k ) k ( k = 0,1,2,  N − 1)
  • 17. N X ( k ) = X 1 ( k ) + W X 2 ( k ) ( k = 0,1,  − 1) k N 2 N N N (k+ ) N X (k + ) = X 1 (k + ) + W N 2 X 2 (k + ) 2 2 2 N = X 1 (k ) − W N X 2 (k ) k ( k = 0,1,  − 1) 2 x1 ( r ) X 1 (k ) x(n) X (k ) x2 (r ) X 2 (k )
  • 18. Butterfly computation flow graph N X (k ) = X 1 (k ) + W X 2 (k ) k N ( k = 0,1,  − 1) 2 N N X (k + ) = X 1 (k ) − W N X 2 (k ) k ( k = 0,1,  − 1) 2 2 X 1 (k ) X 1 (k ) + W N X 2 (k ) k k WN X 2 (k ) X 1 (k ) − W N X 2 (k ) k −1 There are 1 complex multiplication and 2 complex additions
  • 19. X 1 ( 0) x1 (0) = x (0) X ( 0) X (1) x1 (1) = x ( 2) N/2- 1 X (1) x1 ( r ) point X ( 2) x1 ( 2) = x (4) 1 X ( 2) DFT X 1 ( 3) x1 ( 3) = x (6) X ( 3) 0 X 2 ( 0) WN x 2 (0) = x (1) −1 X ( 4) 1 X 2 (1) WN x 2 (1) = x ( 3) N/2- −1 X ( 5) x2 ( r ) point X 2 ( 2) 2 WN x 2 ( 2) = x ( 5) −1 X ( 6) DFT 3 X 2 ( 3) WN x 2 ( 3) = x ( 7 ) −1 X (7) N-point DFT
  • 20. Radix-2 DIT- FFT Algorithm  The computation complexity for N = 2 3 x (n) X (k ) 2-point Synthesize DFT the 2-point 2-point DFTs into a DFT 4-point DFT Synthesize the 4-point 2-point Synthesize DFTs into a DFT the 2-point 8-point DFT 2-point DFTs into a DFT 4-point DFT 3-stage synthesize, each has N/2 butterfly computation
  • 21. Radix-2 DIT- FFT Algorithm •At the end of computation flow graph at any stage, output variables can be stored in the same registers previously occupied by the corresponding input variables. •This type of memory location sharing is called in-place computation which results in significant saving in overall memory requirements.
  • 22. The distance between two nodes in a butterfly For N = 2 L there are L stages Stage Distance stage 1 1 stage 2 2 stage 3 4  stage L 2 L −1
  • 23. Radix-2 DIT- FFT Algorithm  Bit-reversed order In the DFT computation scheme, the DFT samples X(k) appear at the output in a sequential order while the input samples x(n) appear in a different order: a bit-reversed order. Thus, a sequentially ordered input x(n) must be reordered appropriately before the fast algorithm can be implemented. Let m, n represent the sequential and bit-reversed order in binary forms respectively, then: m: 000 001 010 011 100 101 110 111 n: 000 100 010 110 001 101 011 111
  • 24. Why is the input bit-reversed order n0 n1 n2 0 x (000) x (0) 0 0 1 x (100) x (4) 0 1 x (010) x (2) x ( n2 n1n0 ) 1 x (110) x (6) 0 0 x (001) x (1) 1 1 x (101) x (5) 0 1 x (011) x (3) 1 x (111) x (7 )
  • 25. How to get the bit-reversed order Let n represent the natural order, the ˆ n represent the bit-reversed order, then: if n > n , ˆ x ( n) ⇔ x ( n) ˆ A(0) A(1) A( 2) A( 3) A(4) A(5) A(6) A(7 ) n x (0) x (1) x ( 2) x ( 3) x ( 4) x ( 5) x ( 6) x(7) ˆ n x ( 0) x ( 4) x ( 2) x ( 6) x (1) x ( 5) x ( 3) x(7)
  • 26. Decimation-In-Frequency  It is a popular form of FFT algorithm.  In this the output sequence x(k) is divided into smaller and smaller subsequences, that is why the name decimation in frequency,  Initially the input sequence x(n) is divided into two sequences x1(n) and x2(n) consisting of the first n/2 samples of x(n) and the last n/2 samples of x(n) respectively
  • 27. Radix-2 DIF- FFT Algorithm  Algorithm principle  To divide N-point sequence x(n) into two N/2-point sequence N The former N/2-point x( n), 0 ≤ n ≤ −1 2 N N The latter N/2-point x( n + ), 0 ≤ n ≤ − 1 2 2
  • 28. x (n) 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 butterfly computation 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 butterfly computation butterfly computation 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 butterfly butterfly butterfly butterfly X (k ) 0 4 2 6 1 5 3 7
  • 29. To compute the DFT of N-point sequence x(n) N −1 N −1 2 N −1 X ( k ) = ∑ x ( n)W nk N = ∑ x(n)W nk N + ∑ x(n)W nk N n=0 n=0 N n= 2 N N −1 −1 2 2 N N ( n+ ∑ x(n)W + ∑ x ( n + )W N )k = nk N 2 n=0 n=0 2 N −1 2  N N  nk = ∑  x ( n) + W N x ( n + )W N k 2 n=0  2  N −1 = ∑ 2  x ( n) + ( −1) k x ( n + N )W nk ( k = 0,1,  N − 1) n=0  2  N 
  • 30. Radix-2 DIF- FFT Algorithm  To separate the even and odd numbered samples of X(k) N let k = 2r , k = 2r + 1, ( r = 0,1,  , − 1) 2 N −1 2  x ( n) + x ( n + N )W nr ( r = 0,1,  N − 1) X ( 2r ) = ∑ n=0  2  N  2 2 N −1 2 X ( 2r + 1) = ∑   x ( n) − x ( n + N )W nW nr ( r = 0,1,  N − 1) n=0  2  N N 2 2
  • 31. Radix-2 DIF- FFT Algorithm  N  x1 ( n) = x ( n) + x ( n + 2 )  N let  n = 0,1,  − 1  N  n 2  x 2 ( n) =  x ( n) − x ( n + )W N    2  N −1 2 N X ( 2r ) = ∑ x (n)W n= 0 1 nr N 2 ( r = 0,1,  − 1) 2 N −1 2 N X ( 2r + 1) = ∑ x (n)W n=0 2 nr N 2 ( r = 0,1,  − 1) 2
  • 32. Radix-2 DIF- FFT Algorithm  Butterfly computation flow graph x(n) N x1 ( n) = x( n) + x( n + ) 2 n N WN  N  n x( n + ) x 2 ( n ) =  x ( n ) − x ( n + ) W N 2 −1  2  There are 1 complex multiplication and 2 complex additions
  • 33. for N = 2 3 x1 (0) x ( 0) X ( 0) x1 (1) x(1) N/2- X ( 2) point x1 ( 2) x ( 2) X ( 4) DFT x1 ( 3) x ( 3) X ( 6) 0 WN x 2 ( 0) x ( 4) −1 X (1) 1 WN x 2 (1) x ( 5) N/2- X ( 3) −1 2 WN x 2 ( 2) point x ( 6) −1 X ( 5) 3 DFT WN x 2 ( 3) x(7) −1 X (7)
  • 34. for N = 2 3 x ( 0) X ( 0) 0 WN x (1) X ( 4) 0 −1 WN x ( 2) X ( 2) −1 2 0 WN WN x ( 3) X ( 6) −1 −1 0 W N x ( 4) X (1) −1 1 0 WN WN x ( 5) X ( 5) −1 −1 2 0 WN WN x ( 6) X ( 3) −1 −1 3 2 0 WN WN WN x(7) X (7) −1 −1 −1
  • 35. Radix-2 DIF- FFT Algorithm  The comparison of DIT and DIF  The order of samples DIT-FFT: the input is bit- reversed order and the output is natural order DIF-FFT: the input is natural order and the output is bit- reversed order  The butterfly computation DIT-FFT: multiplication is done before additions DIF-FFT: multiplication is done after additions
  • 36. Radix-2 DIF- FFT Algorithm  Both DIT-FFT and DIF-FFT have the identical computation complexity. i.e. for N = 2 L , there are total L stages and each has N/2 butterfly computation. Each butterfly computation has 1 multiplication and 2 additions.  Both DIT-FFT and DIF-FFT have the characteristic of in-place computation.  A DIT-FFT flow graph can be transposed to a DIF- FFT flow graph and vice versa.

Notes de l'éditeur

  1. example of the time domain decomposition used in the FFT. The next step in the FFT algorithm is to find the frequency spectra of the 1 point time domain signals. Nothing could be easier; the frequency spectrum of a 1 point signal is equal to itself . This means that nothing is required to do this step. Although there is no work involved, don't forget that each of the 1 point signals is now a frequency spectrum, and not a time domain signal. The last step in the FFT is to combine the N frequency spectra in the exact reverse order that the time domain decomposition took place.
  2. 问题:式中, k 只有 N/2 个取值,只能计算 X ( k )的前一半的值。可利用 W 的周期性和对称性计算后一半的值。
  3. DIF-FFT 是先做碟形运算,然后再求两个 N/2 点的 DFT DIT-FFT 是先求两个 N/2 点的 DFT ,然后再将求得的结果用碟形运算合成为一个 N 点的 DFT 。
  4. DIF-FFT 是先做碟形运算,然后再求两个 N/2 点的 DFT DIT-FFT 是先求两个 N/2 点的 DFT ,然后再将求得的结果用碟形运算合成为一个 N 点的 DFT 。