FOURIER ANALYSIS PART 2: Technicalities, FFT & system analysis

Slides:



Advertisements
Similar presentations
DFT & FFT Computation.
Advertisements

DCSP-13 Jianfeng Feng Department of Computer Science Warwick Univ., UK
David Hansen and James Michelussi
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Periodograms Bartlett Windows Data Windowing Blackman-Tukey Resources:
Digital Kommunikationselektronik TNE027 Lecture 5 1 Fourier Transforms Discrete Fourier Transform (DFT) Algorithms Fast Fourier Transform (FFT) Algorithms.
LECTURE Copyright  1998, Texas Instruments Incorporated All Rights Reserved Use of Frequency Domain Telecommunication Channel |A| f fcfc Frequency.
10.1 fourier analysis of signals using the DFT 10.2 DFT analysis of sinusoidal signals 10.3 the time-dependent fourier transform Chapter 10 fourier analysis.
DFT/FFT and Wavelets ● Additive Synthesis demonstration (wave addition) ● Standard Definitions ● Computing the DFT and FFT ● Sine and cosine wave multiplication.
Let’s go back to this problem: We take N samples of a sinusoid (or a complex exponential) and we want to estimate its amplitude and frequency by the FFT.
Windowing Purpose: process pieces of a signal and minimize impact to the frequency domain Using a window – First Create the window: Use the window formula.
Filtering Filtering is one of the most widely used complex signal processing operations The system implementing this operation is called a filter A filter.
Digital Signal Processing – Chapter 11 Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah
Digital Signal Processing
ELEC 303 – Random Signals Lecture 20 – Random processes
Chapter 8: The Discrete Fourier Transform
Lecture #17 INTRODUCTION TO THE FAST FOURIER TRANSFORM ALGORITHM Department of Electrical and Computer Engineering Carnegie Mellon University Pittsburgh,
FFT-based filtering and the Short-Time Fourier Transform (STFT) R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2003.
Course 2007-Supplement Part 11 NTSC (1) NTSC: 2:1 interlaced, 525 lines per frame, 60 fields per second, and 4:3 aspect ratio horizontal sweep frequency,
Lecture 9: Fourier Transform Properties and Examples
Problem: Ground Clutter Clutter: There is always clutter in signals and it distorts the purposeful component of the signal. Getting rid of clutter, or.
Discrete Fourier Transform(2) Prof. Siripong Potisuk.
Analogue and digital techniques in closed loop regulation applications Digital systems Sampling of analogue signals Sample-and-hold Parseval’s theorem.
Spectral Analysis Spectral analysis is concerned with the determination of the energy or power spectrum of a continuous-time signal It is assumed that.
AGC DSP AGC DSP Professor A G Constantinides 1 Digital Filter Specifications Only the magnitude approximation problem Four basic types of ideal filters.
Fast Fourier Transforms
Introduction to Spectral Estimation
Integral Transform Dongsup Kim Department of Biosystems, KAIST Fall, 2004.
Discrete-Time and System (A Review)
DTFT And Fourier Transform
GCT731 Fall 2014 Topics in Music Technology - Music Information Retrieval Overview of MIR Systems Audio and Music Representations (Part 1) 1.
Lecture 1 Signals in the Time and Frequency Domains
ECE 8443 – Pattern Recognition ECE 3163 – Signals and Systems Objectives: Introduction to the IEEE Derivation of the DFT Relationship to DTFT DFT of Truncated.
Interpolation and Pulse Shaping
FOURIER ANALYSIS PART 2: Continuous & Discrete Fourier Transforms
Digital Signal Processing – Chapter 10
Chapter 7 - DSP Based Testing
111 Lecture 2 Signals and Systems (II) Principles of Communications Fall 2008 NCTU EE Tzu-Hsien Sang.
Hossein Sameti Department of Computer Engineering Sharif University of Technology.
By Sarita Jondhale1 Signal Processing And Analysis Methods For Speech Recognition.
Zhongguo Liu_Biomedical Engineering_Shandong Univ. Chapter 8 The Discrete Fourier Transform Zhongguo Liu Biomedical Engineering School of Control.
Chapter 6 Spectrum Estimation § 6.1 Time and Frequency Domain Analysis § 6.2 Fourier Transform in Discrete Form § 6.3 Spectrum Estimator § 6.4 Practical.
Real time DSP Professors: Eng. Julian S. Bruno Eng. Jerónimo F. Atencio Sr. Lucio Martinez Garbino.
Digital Signal Processing Chapter 3 Discrete transforms.
Lecture#10 Spectrum Estimation
Fast Fourier Transforms. 2 Discrete Fourier Transform The DFT pair was given as Baseline for computational complexity: –Each DFT coefficient requires.
The Discrete Fourier Transform
Oh-Jin Kwon, EE dept., Sejong Univ., Seoul, Korea: 2.3 Fourier Transform: From Fourier Series to Fourier Transforms.
EC1358 – DIGITAL SIGNAL PROCESSING
Learning from the Past, Looking to the Future James R. (Jim) Beaty, PhD - NASA Langley Research Center Vehicle Analysis Branch, Systems Analysis & Concepts.
Chapter 2. Characteristics of Signal ※ Signal : transmission of information The quality of the information depends on proper selection of a measurement.
بسم الله الرحمن الرحيم Digital Signal Processing Lecture 14 FFT-Radix-2 Decimation in Frequency And Radix -4 Algorithm University of Khartoum Department.
Chapter 9. Computation of Discrete Fourier Transform 9.1 Introduction 9.2 Decimation-in-Time Factorization 9.3 Decimation-in-Frequency Factorization 9.4.
1 Chapter 8 The Discrete Fourier Transform (cont.)
Professor A G Constantinides 1 Digital Filter Specifications We discuss in this course only the magnitude approximation problem There are four basic types.
 Carrier signal is strong and stable sinusoidal signal x(t) = A cos(  c t +  )  Carrier transports information (audio, video, text, ) across.
FFT corrections for tune measurements
Chapter 4 Discrete-Time Signals and transform
Discrete Fourier Transform (DFT)
CS 591 S1 – Computational Audio
CS 591 S1 – Computational Audio
DIGITAL SIGNAL PROCESSING ELECTRONICS
Lecture on Continuous and Discrete Fourier Transforms
Spectral Analysis Spectral analysis is concerned with the determination of the energy or power spectrum of a continuous-time signal It is assumed that.
4.1 DFT In practice the Fourier components of data are obtained by digital computation rather than by analog processing. The analog values have to be.
Chapter 8 The Discrete Fourier Transform
Interpolation and Pulse Shaping
Chapter 8 The Discrete Fourier Transform
Chapter 8 The Discrete Fourier Transform
Fast Fourier Transform (FFT) Algorithms
Lec.6:Discrete Fourier Transform and Signal Spectrum
Presentation transcript:

FOURIER ANALYSIS PART 2: Technicalities, FFT & system analysis Maria Elena Angoletta AB/BDI DISP 2003, 27 February 2003

TOPICS 2. DFT resolution - improvement 1. DFT windows 2. DFT resolution - improvement 3. Efficient DFT calculation: FFT 4. Hints on system spectral analysis M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 2 / 21

DFT – Window characteristics Finite discrete sequence  spectrum convoluted with rectangular window spectrum. Leakage amount depends on chosen window & on how signal fits into the window. Resolution: capability to distinguish different tones. Inversely proportional to main-lobe width. Wish: as high as possible. (1) Peak-sidelobe level: maximum response outside the main lobe. Determines if small signals are hidden by nearby stronger ones. Wish: as low as possible. (2) Sidelobe roll-off: sidelobe decay per decade. Trade-off with (2). (3) Rectangular window Several windows used (application-dependent): Hamming, Hanning, Blackman, Kaiser ... M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 3 / 21

In time it reduces end-points discontinuities. DFT of main windows Some window functions Windowing reduces leakage by minimising sidelobes magnitude. Sampled sequence In time it reduces end-points discontinuities. Non windowed Windowed M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 4 / 21

Common windows characteristics DFT - Window choice Common windows characteristics Far & strong interfering components  high roll-off rate. Near & strong interfering components  small max sidelobe level. Accuracy measure of single tone  wide main-lobe Observed signal Window wish list NB: Strong DC component can shadow nearby small signals. Remove it! M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 5 / 21

DFT - Window loss remedial Smooth data-tapering windows cause information loss near edges. Solution: sliding (overlapping) DFTs. Attenuated inputs get next window’s full gain & leakage reduced. Usually 50% or 75% overlap (depends on main lobe width). Drawback: increased total processing time. M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 6 / 21

Zero padding Improves DFT frequency inter-sampling spacing (“resolution”). After padding bins @ frequencies NS = original samples, L = padded. M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 7 / 21

DFT spectral resolution Zero padding -2 DFT spectral resolution Capability to distinguish two closely-spaced frequencies: not improved by zero-padding!. Frequency inter-sampling spacing: increased by zero-padding (DFT “frequency span” unchanged due to same sampling frequency) Additional reason for zero-padding: to reach a power-of-two input samples number (see FFT). Zero-padding in frequency domain increases sampling rate in time domain. Note: it works only if sampling theorem satisfied! Apply zero-padding after windowing (if any)! Otherwise stuffed zeros will partially distort window function. NOTE M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 8 / 21

DFT - scalloping loss (SL) kmax bin, k We’re lucky here! Input frequency f0 btwn. bin centres causes magnitude loss SL = 20 Log10(|cr+kmax /ckmax|) ~ Worst case when f0 falls exactly midway between 2 successive bins (|r|=½) SL bin, k |r|  ½ f0 = (kmax + r) fS/N Frequency error: f = r fS/N, relative error: R=f / f0 = r/[(kmax+r)] R  1/(1+2 kmax) kmax f0 Note: Non-rectangular windows broaden DFT main lobe  SL less severe Correction depends on window used. May impact on data interpretation (wrong f0!) M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 9 / 21

DFT - SL Example SL remedial • increasing N (?) • improve windowing, DC bias correction, Rectang. window, zero padding, FFT • increasing N (?) • improve windowing, • zero-padding, • interpolation around kmax. SL remedial DC bias correction, Hanning window, zero padding, FFT M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 10 / 21

DFT - parabolic interpolation Rectangular window Hanning window Parabolic interpolation often enough to find position of peak (i.e. frequency). Other algorithms available depending on data. M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 11 / 21

DFT averaging Incoherent averaging Coherent averaging M = No. of DFT to average k = bin number, k=0, 1 .. N-1 Background noise fluctuations reduced, average noise power unchanged. Coherent averaging Background noise power is reduced. M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 12 / 21

Efficient DFT calculation: FFT WNn,k = twiddle factors k = 0,1 .. N-1 DFT Direct DFT calculation redundancy WNkn periodic function calculated many times. Direct DFT calculation requires ~N2 complex multiplications. complexity O(N2) VERY BAD ! Algorithms (= Fast Fourier Transform) developed to compute N-points DFT with ~ Nlog2N multiplications (complexity O(Nlog2N) ). M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 13 / 21

FFT advantages DFT  N2 FFT  N log2N N DFT Radix-2 4 16 32 1024 80 128 16384 448 1048576 5120 DSPs & PLDs influenced algorithms design. ‘60s & ‘70s: multiplication counts was “quality factor”. Now: number of additions & memory access (s/w) and communication costs (h/w) also important. NB: Usually you don’t want to write an FFT algorithm, just to “borrow” it !!! Go “shopping” onto the web! M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 14 / 21

FFT philosophy General philosophy (to be applied recursively): divide & conquer. cost(sub-problems) + cost(mapping) < cost(original problem) Different algorithms balance costs differently. Example: Decimation-in-time algorithm time frequency Step 1: Time-domain decomposition. N-points signal  N, 1-point signals (interlace decomposition). Shuffled input data (bit-reversal). log2N stages. (*): only first decomposition shown. (*) Step 2: 1-point input spectra calculation. (Nothing to do!) Step 3: Frequency-domain synthesis. N spectra synthesised into one. M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 15 / 21

FFT family tree Divide & conquer N : GCD(*)(N1,N2) = 1 N1, N2 co-prime. Ex: 240 = 16·3·5 Cost: SUB-PROBLEMS. No twiddle-factors calculations. Easier mapping (permutations). Some algorithms: Good-Thomas, Kolba, Parks, Winograd. (*) GCD= Greatest Common Divisor N : GCD(N1,N2) <> 1 Ex: N = 2n Cost: MAPPING. Twiddle-factors calculations. Easier sub-problems. Some algorithms: Cooley-Tukey, Decimation-in-time / in-frequency Radix-2, Radix-4, Split radix. M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 16 / 21

(Some) FFT concepts & notes Butterfly: basic FFT calculation element. Decimation-in-time  time data shuffling. Decimation-in-frequency  frequency data shuffling. In-place computation: no auxiliary storage needed, allowed by most algorithms. DFT pruning: only few bins needed or different from zero  only they get calculated (ex: Goertzel algorithm). Real-data case: Mirroring effect in DFT coeffs.  only half of them calculated. N power-of-two: Many common FFT algorithms work with power-of-two number of inputs. When they are not  pad inputs with zeroes. Dual approach: data to be reordered in time or in frequency! M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 17 / 21

Systems spectral analysis (hints) System analysis: measure input-output relationship. h[t] = impulse response Linear Time Invariant x[n] h[n] y[n] predicted from { x[n], h[t] } X(f) H(f) Y(f) = X(f) · H(f) H(f) : LTI transfer function Transfer function can be estimated by Y(f) / X(f) M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 18 / 21

Estimating H(f) (hints) Power Spectral Density of x[t] (FT of autocorrelation). Cross Power Spectrum of x[t] & y[t] (FT of cross-correlation). Transfer Function (ex: beam !) Coherence function values in [0,1] assess degree of linear relationship between x[t] & y[t]. It is a check on H(f) validity! M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 19 / 21

References - 1 Papers Tom, Dick and Mary discover the DFT, J. R. Deller Jr, IEEE Signal Processing Magazine, pg 36 - 50, April 1994. On the use of windows for harmonic analysis with the Discrete Fourier Transform, F. J. Harris, IEEE Proceedings, Vol. 66, No 1, January 1978. Some windows with a very good sidelobe behaviour, A. H. Nuttall, IEEE Trans. on acoustics, speech and signal processing, Vol ASSP-29, no. 1, February 1981. Some novel windows and a concise tutorial comparison of windows families, N. C. Geckinli, D. Yavuz, IEEE Trans. on acoustics, speech and signal processing, Vol ASSP-26, no. 6, December 1978. Study of the accuracy and computation time requirements of a FFT-based measurement of the frequency, amplitude and phase of betatron oscillations in LEP, H.J. Schmickler, LEP/BI/Note 87-10. Causes et corrections des erreurs dans la mesure des caracteristiques des oscillations betatroniques obtenues a partir d’une transformation de Fourier, E. Asseo, CERN PS 85-9 (LEA). M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 20 / 21

References - 2 Precise measurements of the betatron tune, R. Bartolini et al., Particle Accel., 1996, vol. 55, pp 247-256. How the FFT gained acceptance, J. W. Cooley, IEEE Signal Processing Magazine, January 1992. A comparative analysis of FFT algorithms, A. Ganapathiraju et al., IEEE Trans.on Signal Processing, December 1997. Books The Fourier Transform and its applications, R. N. Bracewell, McGraw-Hill, 1986. A History of scientific computing, edited by S. G. Nash, ACM Press, 1990. Introduction to Fourier analysis, N. Morrison, John Wiley & Sons, 1994. The DFT: An owner’s manual for the Discrete Fourier Transform, W. L. Briggs, SIAM, 1995. The FFT: Fundamentals and concepts, R. W. Ramirez, Prentice Hall, 1985. M. E. Angoletta - DISP2003 - Fourier analysis - Part 2.2: Technicalities 21 / 21