EDISP (NWL2) (English) Digital Signal Processing Transform, FT, DFT. March 11, 2015

Similar documents
EDISP (NWL3) (English) Digital Signal Processing DFT Windowing, FFT. October 19, 2016

CMPT 318: Lecture 5 Complex Exponentials, Spectrum Representation

Music 270a: Complex Exponentials and Spectrum Representation

Chapter 4 Discrete Fourier Transform (DFT) And Signal Spectrum

Discrete Fourier Transform

Multimedia Signals and Systems - Audio and Video. Signal, Image, Video Processing Review-Introduction, MP3 and MPEG2

Interchange of Filtering and Downsampling/Upsampling

DISCRETE FOURIER TRANSFORM

Review of Linear System Theory

1.3 Frequency Analysis A Review of Complex Numbers

The Fourier Transform (and more )

Discrete Fourier transform

Lecture 5. The Digital Fourier Transform. (Based, in part, on The Scientist and Engineer's Guide to Digital Signal Processing by Steven Smith)

7.16 Discrete Fourier Transform

Discrete-time Fourier transform (DTFT) representation of DT aperiodic signals Section The (DT) Fourier transform (or spectrum) of x[n] is

Fundamentals of the DFT (fft) Algorithms

EEE4001F EXAM DIGITAL SIGNAL PROCESSING. University of Cape Town Department of Electrical Engineering PART A. June hours.

Chapter 8 The Discrete Fourier Transform

Lecture 19: Discrete Fourier Series

Aspects of Continuous- and Discrete-Time Signals and Systems

VII. Discrete Fourier Transform (DFT) Chapter-8. A. Modulo Arithmetic. (n) N is n modulo N, n is an integer variable.

Discrete Time Signals and Systems Time-frequency Analysis. Gloria Menegaz

! Circular Convolution. " Linear convolution with circular convolution. ! Discrete Fourier Transform. " Linear convolution through circular

Representing a Signal

Math 345: Applied Mathematics

Introduction to Digital Signal Processing

6.003: Signal Processing

[ ], [ ] [ ] [ ] = [ ] [ ] [ ]{ [ 1] [ 2]

BME 50500: Image and Signal Processing in Biomedicine. Lecture 2: Discrete Fourier Transform CCNY

Frequency-domain representation of discrete-time signals

Discrete-time Signals and Systems in

Fourier Series and Fourier Transforms

Mathematical Preliminaries and Review

EE-210. Signals and Systems Homework 7 Solutions

3 What You Should Know About Complex Numbers

PS403 - Digital Signal processing

ECSE 512 Digital Signal Processing I Fall 2010 FINAL EXAMINATION

1. Calculation of the DFT

Lecture Notes on Fundamentals of Audio-Video Signal Processing

University of Connecticut Lecture Notes for ME5507 Fall 2014 Engineering Analysis I Part III: Fourier Analysis

MAHALAKSHMI ENGINEERING COLLEGE-TRICHY

Discrete Time Fourier Transform (DTFT)

! Introduction. ! Discrete Time Signals & Systems. ! Z-Transform. ! Inverse Z-Transform. ! Sampling of Continuous Time Signals

Fourier analysis of discrete-time signals. (Lathi Chapt. 10 and these slides)

Transforms and Orthogonal Bases

Circuits and Systems I

OLA and FBS Duality Review

ECE 301 Fall 2010 Division 2 Homework 10 Solutions. { 1, if 2n t < 2n + 1, for any integer n, x(t) = 0, if 2n 1 t < 2n, for any integer n.

3.2 Complex Sinusoids and Frequency Response of LTI Systems

Fourier Analysis of Signals Using the DFT

GATE EE Topic wise Questions SIGNALS & SYSTEMS

Digital Signal Processing Lecture 10 - Discrete Fourier Transform

The Discrete Fourier Transform (DFT) Properties of the DFT DFT-Specic Properties Power spectrum estimate. Alex Sheremet.

Digital Signal Processing

Chapter 6: Applications of Fourier Representation Houshou Chen

Review of Discrete-Time System

! Spectral Analysis with DFT. ! Windowing. ! Effect of zero-padding. ! Time-dependent Fourier transform. " Aka short-time Fourier transform

Digital Signal Processing. Midterm 2 Solutions

Subband Coding and Wavelets. National Chiao Tung University Chun-Jen Tsai 12/04/2014

Lecture 10. Digital Signal Processing. Chapter 7. Discrete Fourier transform DFT. Mikael Swartling Nedelko Grbic Bengt Mandersson. rev.

Fourier series for continuous and discrete time signals

Review of Fundamentals of Digital Signal Processing

Bridge between continuous time and discrete time signals

DSP Algorithm Original PowerPoint slides prepared by S. K. Mitra

Image Acquisition and Sampling Theory

Multidimensional digital signal processing

Review of Linear Systems Theory

Chirp Transform for FFT

Discrete Fourier Transform

Lecture 4: FT Pairs, Random Signals and z-transform

SEISMIC WAVE PROPAGATION. Lecture 2: Fourier Analysis

Lecture 10, Multirate Signal Processing Transforms as Filter Banks. Equivalent Analysis Filters of a DFT

Discrete-Time Fourier Transform (DTFT)

ENT 315 Medical Signal Processing CHAPTER 2 DISCRETE FOURIER TRANSFORM. Dr. Lim Chee Chin

Mathematics of the Discrete Fourier Transform (DFT)

15 n=0. zz = re jθ re jθ = r 2. (b) For division and multiplication, it is handy to use the polar representation: z = rejθ. = z 1z 2.

Advanced Digital Signal Processing -Introduction

ECG782: Multidimensional Digital Signal Processing

4.1 Introduction. 2πδ ω (4.2) Applications of Fourier Representations to Mixed Signal Classes = (4.1)

Electric Circuit Theory

EE 3054: Signals, Systems, and Transforms Spring A causal discrete-time LTI system is described by the equation. y(n) = 1 4.

Fall 2011, EE123 Digital Signal Processing

Module 3. Convolution. Aim

Digital Signal Processing Lecture 3 - Discrete-Time Systems

Sinusoidal Modeling. Yannis Stylianou SPCC University of Crete, Computer Science Dept., Greece,

Digital Signal Processing, Homework 1, Spring 2013, Prof. C.D. Chung

Filtering in the Frequency Domain

How to manipulate Frequencies in Discrete-time Domain? Two Main Approaches

Time and Spatial Series and Transforms

Summary of lecture 1. E x = E x =T. X T (e i!t ) which motivates us to define the energy spectrum Φ xx (!) = jx (i!)j 2 Z 1 Z =T. 2 d!

Ch.11 The Discrete-Time Fourier Transform (DTFT)

Periodic functions: simple harmonic oscillator

Homework #1 Solution

Homework 6 EE235, Spring 2011

2.3 Oscillation. The harmonic oscillator equation is the differential equation. d 2 y dt 2 r y (r > 0). Its solutions have the form

Communication Signals (Haykin Sec. 2.4 and Ziemer Sec Sec. 2.4) KECE321 Communication Systems I

ECE-700 Review. Phil Schniter. January 5, x c (t)e jωt dt, x[n]z n, Denoting a transform pair by x[n] X(z), some useful properties are

ELEN 4810 Midterm Exam

Two-Dimensional Signal Processing and Image De-noising

The Discrete Fourier Transform

Transcription:

EDISP (NWL2) (English) Digital Signal Processing Transform, FT, DFT March 11, 2015

Transform concept We want to analyze the signal represent it as built of some building blocks (well known signals), possibly scaled x[n] = A k φ k [n] k The number k of blocks φ k [n] may be finite, infinite, or even a continuum (then ) Scaling coefficients A k are usually real or complex numbers φ k are complex harmonics e jθ k n or cosines or wavelets... If the representation (expansion) is unique for a class of functions, the set φ k [n] is called a basis for this class. The above representation is an Inverse... transform. The... transform (the forward one) is the way to calculate A k coefficients from the given signal x[n]. The forward transform is mathematically a cast (projection) onto the basis φ k, and it is calculated with inner product, scalar product of a signal with a dual basis φ k functions A k = x[n], φ k [n] (for an orthogonal transform, φ k = φ k ) In a Fourier transform, we take the basis representing different frequencies.

Fourier spectrum of a limited energy signal x(n) 2 <,(x[n] l 2 ) n = Fourier spectrum definition: X(e jθ ) = Linearity: x(n)e jnθ n = X(e jθ ) a continuous, periodic function. x(n) = 1 π X(e jθ ) e jnθ dθ 2π π F ax[n] + by[n] ax(e jθ ) + by (e jθ ) F Time shift: x[n n 0 ] e jn0θ X(e jθ ), Frequency shift: e jnθ 0 F x[n] X(e j(θ θ0) ) Convolution: Modulation: F x[n] y[n] X(e jθ ) Y (e jθ ), F x[n] y[n] 1 2π 2π (Parseval s): E = n= x(n) 2 = 1 2π 0 X(e jφ ) Y (e jθ φ )dφ π π X(ejθ ) 2 dθ inverse transform

A simple example A very long piece of sinusoid: sin(θ x n) for n 0, 1,..., N 1 (or 1/2je +jnθ x 1/2je jnθ x ) Scalar product of 1/2je +jnθ x with e jnθ when θ = θ x : N 1 n=0 1/2je0 = jn/2 when θ θ x : N 1 n=0 1/2jejnθ x θ =... jn/2 times mean value of a complex sine almost zero Similar for θ x, and we get two strong components in spectrum at ±θ x (plus almost zero around for thorough analysis see next slide)

A full-fledged example We sample x a (t) = rect( t 0.5 ) with T T s = T /L { { 1 for 0 t < T 1 for n = 0, 1,..., L 1 x a (t) = x[n] = 0 for other t 0 for other n X a (ω) = x a (t)e jωt dt X(e jθ ) = n = x(n)e jnθ X a (ω) = T sin(ωt /2) ωt /2 e jωt /2 X (e jθ ) = e j (L 1)θ/2 sin(lθ/2) sin(θ/2) (hint: ( Σ qn = (1 q N )/(1 q) ) ) At home: Repeat calculations for x a = rect( t 0.5 ) cos(ωt); select ω such T that an integer number of periods fits in T.

Periodic (limited mean power) signal FT 1 Limited mean power condition: N N 1 x(n) 2 < Periodicity with period N no component that is nonperiodic or periodic with different period. Conclusion: only N-periodic components (this includes N/k: N/2, N/3,... ) e j2πnk/n Fourier spectrum definition: X(k) = N 1 x(n)e j2πkn/n, defined for < k < but periodic with period N (e.g. 0 < k < N 1) x(n) = 1 N N 1 X(k) e j2πkn/n k=0 inverse transform We represent x[n] as a sum of N complex cosines with angular frequencies θ k k, k = 0, 1,..., N 1 = 2π N

8 basis functions for N=8 (real part only)

Example Discrete-time unipolar square wave: x p [n] with period N = 10 has L = 5 nonzero samples (n = 0, 1,... L 1) in each period X(k) = x p (n)e j 2πkn /N = The amplitude spectrum X [k] = L 1 e j 2πkn /N j(l 1)πk /N = e sin(lπk /N) sin(πk /N), sin(lθ k /2 ) sin(θ k /2 ), θ k = 2πk /N is shown k

Discrete Fourier Transform A signal x[n] defined for < n < Its spectrum X(e jθ ) defined for continuous 0 θ < 2π Life is short... Let us take a fragment of x[n]: x 0 [n], n = 0, 1,..., N 1 x 0 [n] = x[n]g[n], where g[n] = { 1 for n = 0, 1,..., N 1 0 for others n g[n] window (gate?) function (here: a rectangular window) for white noise) We take only N values of θ k ) X 0 (e jθ k = = 2π k, k = 0, 1,..., N 1 N x 0 (n) e jnθ k = j2πn k /N x 0 (n)e (w[n] we reserve

DFT properties extras w.r.t. FT properties Orthogonality of basis functions (see next slide) Periodicity As we sample the spectrum, the reconstructed signal is periodic with period N. If we compute IDFT for < n <... A non-periodic signal was reconstructed as periodic A periodic signal was reconstructed as N-periodic

DFT as an orthogonal transform An orthogonal transform (e.g. DFT) is a decomposition of a function (signal) on a set of orthogonal basis functions φ k [n]. x[n] = 1 N N 1 A(k) φ k [n] k=0 Because of φ k [n] orthogonality, A(k) are easy to calculate: N 1 A(k) = n=0 x(n) φ k(n) Basis sequences (transform kernel) have to be orthogonal: 1 N { N 1 φ k (n) φ 1 m = k m(n) = 0 otherwise k=0 Scalar product is zero = orthogonal! DFT basis functions φ k (n) = e jnθ k = e j2πnk/n are orthogonal we chose θ k so that they be!

Inverse DFT Let s take forward DFT definition as a linear equation set, with x 0 [n] as unknowns. When we multiply both sides by e j2πrk /N, r = 0, 1,..., N 1 and sum for k = 0, 1,..., N 1 X 0 (k) e j 2πrk /N = k =0 k =0 [ x 0 (n)e ]e j2πnk /N j2πrk /N = = k =0 x 0 (n)e j2πk(r n)/n = x 0 (n) k =0 j2πk (r n)/n e Complicated? No! Orthogonality of basis helps the second sum is mainly 0: e j2πk (r n)/n = k =0 x 0 (n) = 1 N { N, r = n 0, r n X 0 (k)e j2πr k /N = N x 0 (r), r = 0, 1 k =0 X 0 (k)e j2πnk /N, n = 0, 1,..., N 1 k =0 So IDFT is almost the same as DFT remove minus and scale by 1/N.

Forward and Inverse DFT - transformation matrix x and F (x) are sets of N numbers i.e. vectors in N-dimensional space. F (x) = F x F 1 F (x) = F 1 F x F 1 F (x) = algebraic trivia: How to construct F matrix? F kn = e j2πnk/n What is F 1? (not-so-trivial, but see IDFT slide) Note nice properties of F matrix... Entertainment maths When we define F as mathematicians like it with factor of 1/ N at both forward and inverse transform, then: F (F (x)) gives x( n) F (F (F (F (x)))) gives again x F (F (F (x))) gives F 1 (x) The same happens with F matrix, of course. x

Simple DFT matrices N = 1... [ ] 1 1 N = 2 1 1 1 1 1 1 N = 4 1 i 1 i 1 1 1 1 1 i 1 i If you remember this, you may implement DFT with order 1, 2 or 3 without any multiplication (with pencil and paper or with a digital circuit).

Problems to be studied What happens to the spectrum (and DFT) when Signal is inverted in time x 1 (n) = x( n) Signal is upsampled by factor of two x 1 (2n) = x(n); x 1 (2n + 1) = 0 (or three, or more) Signal is extended with zeros (zero-padded) to a double/triple/... length Signal is decimated (downsampled) x 1 (n) = x(2n); odd samples x(2n + 1) are discarded Signal is modulated with ( 1) n, with a complex cosine e jθ 0n, real cosine cos(θ 0 n) or real sine... Decimation When Roman soldiers ran away chased by Spartakus, Marcus Licinius Krassus ordered to kill one out of each ten deci of them. The morale has risen, and next time they were more eager to be killed in the battlefield. In three years, they defeated Spartakus at the Silarus river. The decimation factor (defined as N original /N left ) was 10/9 in that case in signal practice the factor is usually 2, 4, or even 2 K