FFTs, Windows, and Circularity

Slides:



Advertisements
Similar presentations
Fourier Series & Transforms
Advertisements

INVERTERS (DC-AC Converters).
ACHIZITIA IN TIMP REAL A SEMNALELOR. Three frames of a sampled time domain signal. The Fast Fourier Transform (FFT) is the heart of the real-time spectrum.
Engineering Mathematics Class #15 Fourier Series, Integrals, and Transforms (Part 3) Sheng-Fang Huang.
GG 313 Lecture 25 Transform Pairs and Convolution 11/22/05.
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.
Dr. Jie ZouPHY Chapter 8 (Hall) Sound Spectra.
Time-Frequency and Time-Scale Analysis of Doppler Ultrasound Signals
Intro to Fourier Analysis Definition Analysis of periodic waves Analysis of aperiodic waves Digitization Time-frequency uncertainty.
Fourier Analysis D. Gordon E. Robertson, PhD, FCSB School of Human Kinetics University of Ottawa.
Discrete Fourier Transform(2) Prof. Siripong Potisuk.
The Analytic Function from the Hilbert Transform and End Effects Theory and Implementation.
Continuous Time Signals All signals in nature are in continuous time.
Page 1 Time_vs_Freq.ppt 9/21/99 Time vs. Frequency September 21, 1999 Ron Denton.
CH#3 Fourier Series and Transform
Systems: Definition Filter
Lecture 12 Convolutions and summary of course Remember Phils Problems and your notes = everything Today Convolutions.
Goals For This Class Quickly review of the main results from last class Convolution and Cross-correlation Discrete Fourier Analysis: Important Considerations.
Where we’re going Speed, Storage Issues Frequency Space.
Lecture 1 Signals in the Time and Frequency Domains
GG 313 Lecture 26 11/29/05 Sampling Theorem Transfer Functions.
Transforms. 5*sin (2  4t) Amplitude = 5 Frequency = 4 Hz seconds A sine wave.
1 BIEN425 – Lecture 10 By the end of the lecture, you should be able to: –Describe the reason and remedy of DFT leakage –Design and implement FIR filters.
Signals CY2G2/SE2A2 Information Theory and Signals Aims: To discuss further concepts in information theory and to introduce signal theory. Outcomes:
Fundamentals of Electric Circuits Chapter 18 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Wavelet transform Wavelet transform is a relatively new concept (about 10 more years old) First of all, why do we need a transform, or what is a transform.
Signal and Systems Prof. H. Sameti Chapter 3: Fourier Series Representation of Periodic Signals Complex Exponentials as Eigenfunctions of LTI Systems Fourier.
Zhongguo Liu_Biomedical Engineering_Shandong Univ. Chapter 8 The Discrete Fourier Transform Zhongguo Liu Biomedical Engineering School of Control.
Basic Time Series Analyzing variable star data for the amateur astronomer.
Ultrashort Laser Pulses I Description of pulses Intensity and phase The instantaneous frequency and group delay Zero th and first-order phase The linearly.
ES97H Biomedical Signal Processing
FILTERS. Filter The purpose of a filter is to pass signals of certain frequencies,
Eeng360 1 Chapter 2 Fourier Transform and Spectra Topics:  Fourier transform (FT) of a waveform  Properties of Fourier Transforms  Parseval’s Theorem.
The Frequency Domain Digital Image Processing – Chapter 8.
Fourier Series & Transforms
Fourier Transform and Spectra
Fourier Transform and Spectra
CH#3 Fourier Series and Transform 1 st semester King Saud University College of Applied studies and Community Service 1301CT By: Nour Alhariqi.
Spectral Analysis March 3, 2016 Mini-Rant I have succeeded in grading your course project reports. Things to keep in mind: A table of stop phonemes is.
Complex Form of Fourier Series For a real periodic function f(t) with period T, fundamental frequency where is the “complex amplitude spectrum”.
Convergence of Fourier series It is known that a periodic signal x(t) has a Fourier series representation if it satisfies the following Dirichlet conditions:
CS 591 S1 – Computational Audio
Signal Generators Term 8.
CS 591 S1 – Computational Audio
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
Continuous-Time Signal Analysis
Fourier Analysis of Signals Using DFT
Research Methods in Acoustics Lecture 7: Convolution and Fourier Transform Jonas Braasch Partly based on Jens Blauert’s Communication Acoustics script.
All about convolution.
UNIT II Analysis of Continuous Time signal
Filter Design by Windowing
DCSP-3: Fourier Transform (continuous time)
Chapter4 Bandpass Signalling Bandpass Filtering and Linear Distortion
Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms.
Quiz: Fast Fourier Transforms (FFTs) and Windowing TIPL 4302 TI Precision Labs – ADCs Created by Art Kay.
Chapter 8 The Discrete Fourier Transform
Advanced Digital Signal Processing
Advanced Digital Signal Processing
Wavelet transform Wavelet transform is a relatively new concept (about 10 more years old) First of all, why do we need a transform, or what is a transform.
Lecture 17 DFT: Discrete Fourier Transform
Fundamentals of Electric Circuits Chapter 18
Fourier Transform and Spectra
Fourier Transform and Spectra
8.6 Autocorrelation instrument, mathematical definition, and properties autocorrelation and Fourier transforms cosine and sine waves sum of cosines Johnson.
Chapter 8 The Discrete Fourier Transform
2D NMR spectroscopy So far we have been dealing with multiple pulses but a single dimension - that is, 1D spectra. We have seen, however, that a multiple.
C H A P T E R 21 Fourier Series.
Presentation transcript:

FFTs, Windows, and Circularity J.D. (jj) Johnston Factotum in Chief – Immersion Networks

First, two properties of the FFT Circularity Signal discontinuities

First, let’s review a very important property of the FFT, that being circularity. When you apply an FFT, it assumes that the last sample in the FFT comes just before the first sample, in other words, the ends wrap around. This causes a number of issues, including the need for windowing. But first, let’s show an example.

Signal Amplitude Spectrum Signal (shifted) Amplitude Spectrum

Wait, what??? The signal was shifted. This means: The only difference is in phase I didn’t plot the phase The delay was 16 samples, which works out to phi = t * w, where ‘t’ is the delay Yeah. That simple. The signal WRAPS AROUND!!!! And thence we need windows.

Now: Discontinuities in Fourier Transforms The kind of discontinuity in a signal defines how fast the spectrum falls off. If there is a discontinuity in the signal, but only one (not a doublet) the spectrum falls off at 6dB/octave. If there is a discontinuity in the derivative, 12dB/octave If there is a doublet in the signal, the signal has a strong flat component And so on. But what does this have to do with a window?

Corresponding amplitude Spectra Time Waveform Square Wave (1st derivative) – Blue Triangular Wave (2nd Derivative – Red) Corresponding amplitude Spectra

Back to the FFT and the Window What happens when the end and the beginning of a window do not “match up”

Ok, FFT of 2 slightly different frequency sine waves Remember, a sine wave has a ***LINE*** spectrum, right? What if it’s not an integer number of cycles in the FFT length? Oh, wait, then there’s a discontinuity. It won’t “blend” end to beginning. Yep. That’s why we window!

Two sine waves Resulting spectra

That discontinuity! The discontinuity at the “end” (which is the same as any other point, since the FFT wraps around) causes a massive mis-estimation of the signal spectrum. This, in a nutshell, is why you must window. Otherwise, signals at different frequencies are treated ***DIFFERENTLY*** and block lengths of FFT’s (or DFT’s) will confound the daylights out of what you are looking at. Yes, the FFT is still lossless, phase included. But generally in this particular analysis, we’re looking for the signal spectrum, and we’re not doing such a good estimation!

Windows There are many windows. Rectangular (that’s what you get when you don’t window, since you really ARE windowing, but with a signal that’s just “chopped off” at both ends. Triangular (zero at both ends, but not zero derivative) Hann window (zero at both ends, first derivative also zero at both ends) Windows handle the issue of discontinuity at the beginning and end of the block.

This brings us to another issue, time/frequency uncertainty Your frequency estimation is only as good as your time window. df * dt >= c df is frequency resolution dt is time resolution c is determined by how “good” you want the estimation to be All windows except for rectangular shorten the time duration of the signal, as they are smaller at the ends. Windows therefore reduce the frequency precision, but treat all frequencies the same. (in general, there are specialty windows beyond rectangular)

Some windows in common use: Spectrum of Window First lines of window spectrum Hann vs. Triangular (black vs. blue)

What do we see? Triangular window is zero at the ends Triangular window is ***NOT*** zero derivative at the ends Hann window is zero and also in first derivative And it rolls off faster, a lot faster. The increase in frequency resolution isn’t much worth it, either.

And another pair of windows: Spectrum of Window First few lines of spectrum This is Hann (black) vs. Blackman (blue)

So, always use a Hann window? There are some operations, usually involving system measurements, where a window is only marginally necessary, because the signals are limited in time However, noise can create problems by adding a discontinuity into this measurement Adding a window can create ambiguities in measurement There is no magical answer, understand what you measure.

But, WAIT, you just showed the frequency response of the window But, WAIT, you just showed the frequency response of the window. What about the signal? The “signal” simply modulates the window. For a sine wave signal, it moves the peak away from DC to some other frequency For a complex signal, it convolves the spectrum of the signal with the spectrum of the window. That goes back to the “convolution theorem” discussed briefly in the “FFT Workshop” some years ago. This makes the point that a window is nothing but a particular kind of low-pass filter, of course.

An example of a sine wave, windowed. Windowed Sine Wave Resulting spectrum Note peak shifted to sine wave frequency.

Finally, some different windows characterized Peak shape Full Spectra Window Black – Hann, Red – Blackman, Green – Kaiser (5), Blue -Nuttall