DCSP-12 Jianfeng Feng

Slides:



Advertisements
Similar presentations
DCSP-3: Fourier Transform (continuous time) Jianfeng Feng
Advertisements

DCSP-17 Jianfeng Feng Department of Computer Science Warwick Univ., UK
DCSP-13 Jianfeng Feng
DCSP-14 Jianfeng Feng Department of Computer Science Warwick Univ., UK
DCSP-21 Jianfeng Feng Department of Computer Science Warwick Univ., UK
DCSP-2: Fourier Transform I
DCSP-13 Jianfeng Feng Department of Computer Science Warwick Univ., UK
Revision of Chapter IV Three forms of transformations z transform DTFT: a special case of ZT DFT: numerical implementation of DTFT DTFT X(w)= X (z)|Z=exp(jw)
DCSP-3: Fourier Transform Jianfeng Feng Department of Computer Science Warwick Univ., UK
DCSP-11 Jianfeng Feng
DSPRevision I
DCSP-12 Jianfeng Feng Department of Computer Science Warwick Univ., UK
Digital Kommunikationselektronik TNE027 Lecture 5 1 Fourier Transforms Discrete Fourier Transform (DFT) Algorithms Fast Fourier Transform (FFT) Algorithms.
MATLAB Session 5 ES 156 Signals and Systems 2007 HSEAS Prepared by Frank Tompkins.
Symmetry and the DTFT If we know a few things about the symmetry properties of the DTFT, it can make life simpler. First, for a real-valued sequence x(n),
Ch.4 Fourier Analysis of Discrete-Time Signals
LECTURE Copyright  1998, Texas Instruments Incorporated All Rights Reserved Use of Frequency Domain Telecommunication Channel |A| f fcfc Frequency.
1 Chapter 16 Fourier Analysis with MATLAB Fourier analysis is the process of representing a function in terms of sinusoidal components. It is widely employed.
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.
Digital Signal Processing
DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
Properties of continuous Fourier Transforms
DCSP-13 Jianfeng Feng Department of Computer Science Warwick Univ., UK
Chapter 8: The Discrete Fourier Transform
S. Mandayam/ ECOMMS/ECE Dept./Rowan University Electrical Communications Systems ECE Spring 2007 Shreekanth Mandayam ECE Department Rowan University.
Chapter 12 Fourier Transforms of Discrete Signals.
Unit 7 Fourier, DFT, and FFT 1. Time and Frequency Representation The most common representation of signals and waveforms is in the time domain Most signal.
Continuous Time Signals All signals in nature are in continuous time.
Spectral Analysis Spectral analysis is concerned with the determination of the energy or power spectrum of a continuous-time signal It is assumed that.
Discrete Time Periodic Signals A discrete time signal x[n] is periodic with period N if and only if for all n. Definition: Meaning: a periodic signal keeps.
Systems: Definition Filter
Discrete-Time and System (A Review)
DTFT And Fourier Transform
1 Chapter 8 The Discrete Fourier Transform 2 Introduction  In Chapters 2 and 3 we discussed the representation of sequences and LTI systems in terms.
Chapter 2: Discrete time signals and systems
Motivation Music as a combination of sounds at different frequencies
Fourier Transforms Section Kamen and Heck.
The Discrete Fourier Transform. The Fourier Transform “The Fourier transform is a mathematical operation with many applications in physics and engineering.
Fourier Series Summary (From Salivahanan et al, 2002)
Chapter 4 The Frequency Domain of Signals and Systems.
Transforms. 5*sin (2  4t) Amplitude = 5 Frequency = 4 Hz seconds A sine wave.
1 The Fourier Series for Discrete- Time Signals Suppose that we are given a periodic sequence with period N. The Fourier series representation for x[n]
FOURIER ANALYSIS PART 2: Continuous & Discrete Fourier Transforms
Digital Signal Processing – Chapter 10
Zhongguo Liu_Biomedical Engineering_Shandong Univ. Chapter 8 The Discrete Fourier Transform Zhongguo Liu Biomedical Engineering School of Control.
Digital Image Processing DIGITIZATION. Summery of previous lecture Digital image processing techniques Application areas of the digital image processing.
CHEE825 Fall 2005J. McLellan1 Spectral Analysis and Input Signal Design.
Real time DSP Professors: Eng. Julian S. Bruno Eng. Jerónimo F. Atencio Sr. Lucio Martinez Garbino.
Fourier Analysis of Discrete Time Signals
revision Transfer function. Frequency Response
GG313 Lecture 24 11/17/05 Power Spectrum, Phase Spectrum, and Aliasing.
Learning from the Past, Looking to the Future James R. (Jim) Beaty, PhD - NASA Langley Research Center Vehicle Analysis Branch, Systems Analysis & Concepts.
Lecture 19 Spectrogram: Spectral Analysis via DFT & DTFT
Spectral Analysis Spectral analysis is concerned with the determination of the energy or power spectrum of a continuous-time signal It is assumed that.
MECH 373 Instrumentation and Measurements
Department of Computer Science Warwick Univ., UK
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
Lecture 18 DFS: Discrete Fourier Series, and Windowing
Lecture 17 DFT: Discrete Fourier Transform
APPLICATION of the DFT: Estimation of Frequency Spectrum
Chapter 8 The Discrete Fourier Transform
Chapter 8 The Discrete Fourier Transform
INTRODUCTION TO THE SHORT-TIME FOURIER TRANSFORM (STFT)
Lec.6:Discrete Fourier Transform and Signal Spectrum
Electrical Communication Systems ECE Spring 2019
Fourier Transforms of Discrete Signals By Dr. Varsha Shah
Electrical Communications Systems ECE
Electrical Communications Systems ECE
Presentation transcript:

DCSP-12 Jianfeng Feng

For example, if a sequence is a sinusoid x(n)=cos( 0 n) of infinite length, its DTFT yields two `delta' functions, X( )= ( - 0 )+ ( 0 ) as in Fig. below where we assume all frequencies and 0 to be within the intervals [-, ). Here x) is the Dirac delta function (not confused with the unit impulse defined before)

This shows that the DTFT gives perfect frequency localization as an exact concentration of energy at - 0 and 0 provided

This shows that the DTFT gives perfect frequency localization as an exact concentration of energy at - 0 and 0 provided (a) the sequence lasts from -infinity to infinity and we have an infinite amount of memory to actually collect all the data points, and

This shows that the DTFT gives perfect frequency localization as an exact concentration of energy at - 0 and 0 provided (a) the sequence lasts from -infinity to infinity and we have an infinite amount of memory to actually collect all the data points, and (b) we compute X( ) for all possible frequencies in the interval [-,, again requiring an infinite amount of memory and an infinite computational time.

In practice, we do not have infinite memory, we do not have infinite time, and also any signal we want to analyze does not have infinite duration.

In addition, the spectrum of the signal changes with time, just as music is composed of different notes that change with time.

In practice, we do not have infinite memory, we do not have infinite time, and also any signal we want to analyze does not have infinite duration. In addition, the spectrum of the signal changes with time, just as music is composed of different notes that change with time. Consequently, the DTFT generally is not computable unless we have an analytical expression for the signal we analyze, in which case we can compute it symbolically.

But most of the time this is not the case, especially when we want to determine the frequency spectrum of a signal measured from an experiment.

In this situation, we do not have an analytical expression for the signal, and we need to develop an algorithm that can be computed numerically in a finite number of steps, such as the discrete Fourier transform (DFT).

DFT

clear all close all N=10; %sampling rate N Hz T=20; % time d1=1; % first period d2=0 % second period for i=1:T*N t(i)=i/N; x(i)=cos(d1*2*pi*i/N)+cos(d2*2*pi*i/N); end figure(1) plot(t,x) figure(2) plot(t*N/(T),abs(fft(x))) xlim([0 N/2]); xlabel('Hz')

clear all close all sampling_rate=100;%Hz omega=20; %signal frequecy Hz N=10000; %total number of samples for i=1:N x_sound(i)=cos(2*pi*omega*i/sampling_rate); %signal x(i)=cos(2*pi*omega*i/sampling_rate)+2*randn(1,1); %signal+noise axis(i)=sampling_rate*i/N; % for psd time(i)=i/sampling_rate; % for time trace end subplot(1,2,1) plot(time,x); %signal + noise, time trace subplot(1,2,2) plot(axis,abs(fft(x)),'r'); % magnitude of signal sound(x_sound); %true signal sound

The relationship between DFT and DTFT = 2 k /N

In spite of their similarities, the DFT and DTFT are two quite different operations. Whereas the DFT is a numerical operation, which computers a finite number of coefficients X(0), …,X(N-1) from a finite set of data x(0), …,x(N-1),

the DTFT is not computable numerically because it yields a continuous function, X( ), based on an infinite sequence x(n). In this section we address the problem of estimating X( )=DTFT{x(n)} based on the DFT of a sample of finite length N.

Now the question is, will X N converges to X as N tends to infinity for each value of the frequency variable ?. If the answer is positive, the approximation makes sense and we can say that we can estimate the frequency spectrum of the whole signal based on a set of samples. The more data(i.e. the larger N is), the better the approximation.

The answer Three cases absolutely summable finite energy general case

Absolutely summable signals. These signals are such that |x(n)| < infinity For these signals the DTFT always exists, is finite, and converges for every as

These are the best-behaved sequences, in terms of convergence. This means that for every, we can approximated X ( ) infinitely closely by the finite sequence X N ( ), with N sufficiently large. Typical examples in this class are signals decaying as 1/n 2 for which |x(n)| < C/ n 2, for n sufficiently large. In particular, signals decaying exponentially fast.

Gibbs phenomena: cause a lot troubles in practice applications

Third case: Example: cos (omega_0 n)

DFT for spectral estimation One of the uses of the DFT is to estimate the frequency spectrum of a signal. The Fourier transform of a function produces a spectrum from which the original function can be reconstructed by an inverse transform. So it is reversible. (signal processing: transforms, demo)

In order to do that, it preserves not only the magnitude of each frequency component, but also its phase. This information can be represented as a 2- dimensional vector or a complex number, or as magnitude and phase (polar coordinates). In graphical representations, often only the magnitude (or squared magnitude) component is shown. This is also referred to as a power spectrum.

In particular, given a continuous time signal x(t), the goal is to determine its frequency components by taking a finite set of samples as a vector, (x(0), x(1),…, x(N-1)), and computing its DFT as in the previous section.

The fact that we window the signal x(n) (i.e. we take a finite set of data) will have an effect on the frequency spectrum we compute, and we have to be aware of that when we interpret the results of the DFT. This can be seen by defining a window sequence

and the DTFT of the windowed signal Now notice that we can relate the right-hand side of the preceding expression to the DFT of the finite sequence x(0), …,x(N-1)

To see the effect of the windowing operation on the frequency spectrum, let us examine the case when the signal x(n) is a complex exponential, such as x(n) = exp( j 0 n)

N=10, = 0.5

Two effects of DFT 1.Lose of resolution 1.Leakage of energy from mainlobe to sidelobes

As we have seen, the DFT is the basis of a number of applications, and is one of the most important tools in digital signal processing. The problem with this algorithm is that a brute-force implementation would hardly be feasible in real time, even for a data set of modest length.

Fortunately, the DFT can be computed in a very efficient way, exploiting the very structure of the algorithm we have presented by using the fast Fourier transform (FFT), which is an efficient way of computing he DFT. It is know that for a data set of length N, the complexity of the FFT grows as N log N, the complexity of the DFT computed by brute force grow as N 2. FFT is widely used in many applications.

Spectrogram A spectrogram is an image that shows how the power spectrum of a signal varies with time.

Time Frequenc y

Sampling and reconstruction The question we consider here is under what conditions we can completely reconstruct the original signal x(t) from its discretely sampled signal x(n).