Chapter 5 Window Functions. periodic with a period of N (number of samples). This is observed in table (3.1).

Similar documents
Discrete Fourier Transform (DFT)

6 Sampling. Sampling. The principles of sampling, especially the benefits of coherent sampling

IADS Frequency Analysis FAQ ( Updated: March 2009 )

The Fundamentals of FFT-Based Signal Analysis and Measurement Michael Cerna and Audrey F. Harvey

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

When and How to Use FFT

ME scope Application Note 01 The FFT, Leakage, and Windowing

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

Design of FIR Filters

Distortion Analysis T S. 2 N for all k not defined above. THEOREM?: If N P is an integer and x(t) is band limited to f MAX, then

Frequency Domain Representation of Signals

Corso di DATI e SEGNALI BIOMEDICI 1. Carmelina Ruggiero Laboratorio MedInfo

FFT Analyzer. Gianfranco Miele, Ph.D

The Fundamentals of Mixed Signal Testing

Fourier Methods of Spectral Estimation

Electrical & Computer Engineering Technology

FFT analysis in practice

PART II Practical problems in the spectral analysis of speech signals

Window Functions And Time-Domain Plotting In HFSS And SIwave

EE 422G - Signals and Systems Laboratory

UNIVERSITY OF SWAZILAND

PART I: The questions in Part I refer to the aliasing portion of the procedure as outlined in the lab manual.

Fourier Theory & Practice, Part I: Theory (HP Product Note )

Department of Electrical and Electronics Engineering Institute of Technology, Korba Chhattisgarh, India

21/01/2014. Fundamentals of the analysis of neuronal oscillations. Separating sources

DSP Laboratory (EELE 4110) Lab#10 Finite Impulse Response (FIR) Filters

Laboratory Experiment #1 Introduction to Spectral Analysis

System Identification & Parameter Estimation

Low Power LFM Pulse Compression RADAR with Sidelobe suppression

Windows Connections. Preliminaries

Chapter Three. The Discrete Fourier Transform

Structure of Speech. Physical acoustics Time-domain representation Frequency domain representation Sound shaping

Windows and Leakage Brief Overview

SAMPLING THEORY. Representing continuous signals with discrete numbers

Chapter 7. Introduction. Analog Signal and Discrete Time Series. Sampling, Digital Devices, and Data Acquisition

4. Design of Discrete-Time Filters

Signal Processing for Digitizers

Measurement of RMS values of non-coherently sampled signals. Martin Novotny 1, Milos Sedlacek 2

Digital Filters IIR (& Their Corresponding Analog Filters) Week Date Lecture Title

Frequency Division Multiplexing Spring 2011 Lecture #14. Sinusoids and LTI Systems. Periodic Sequences. x[n] = x[n + N]

LAB #7: Digital Signal Processing

Signals. Continuous valued or discrete valued Can the signal take any value or only discrete values?

New Features of IEEE Std Digitizing Waveform Recorders

Spectrum Analysis - Elektronikpraktikum

Biomedical Signals. Signals and Images in Medicine Dr Nabeel Anwar

Topic 2. Signal Processing Review. (Some slides are adapted from Bryan Pardo s course slides on Machine Perception of Music)

The Fast Fourier Transform

The Polyphase Filter Bank Technique

DYNAMIC SIGNAL ANALYSIS BASICS

Signal processing preliminaries

Dynamic Signal Analysis Basics

Signals & Systems for Speech & Hearing. Week 6. Practical spectral analysis. Bandpass filters & filterbanks. Try this out on an old friend

How to Utilize a Windowing Technique for Accurate DFT

speech signal S(n). This involves a transformation of S(n) into another signal or a set of signals

Discrete Fourier Transform

Understanding Digital Signal Processing

Reading: Johnson Ch , Ch.5.5 (today); Liljencrants & Lindblom; Stevens (Tues) reminder: no class on Thursday.

Design of FIR Filter for Efficient Utilization of Speech Signal Akanksha. Raj 1 Arshiyanaz. Khateeb 2 Fakrunnisa.Balaganur 3

Linguistic Phonetics. Spectral Analysis

Michael F. Toner, et. al.. "Distortion Measurement." Copyright 2000 CRC Press LLC. <

DFT: Discrete Fourier Transform & Linear Signal Processing

Experiment 4- Finite Impulse Response Filters

Simulation Based Design Analysis of an Adjustable Window Function

CHAPTER 6 Frequency Response, Bode. Plots, and Resonance

Fourier Theory & Practice, Part II: Practice Operating the Agilent Series Scope with Measurement/Storage Module

Fourier Transform Pairs

FIR FILTER DESIGN USING A NEW WINDOW FUNCTION


Coming to Grips with the Frequency Domain

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems.

Experiment 2 Effects of Filtering

Module 3 : Sampling and Reconstruction Problem Set 3

Noise estimation and power spectrum analysis using different window techniques

Fourier Signal Analysis

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015

IMPLEMENTATION OF VLSI BASED ARCHITECTURE FOR KAISER-BESSEL WINDOW USING MANTISSA IN SPECTRAL ANALYSIS

Keysight Technologies Pulsed Antenna Measurements Using PNA Network Analyzers

Fourier Analysis. Chapter Introduction Distortion Harmonic Distortion

Department of Electronic Engineering NED University of Engineering & Technology. LABORATORY WORKBOOK For the Course SIGNALS & SYSTEMS (TC-202)

= knd 1/ 2 m 2 / 3 t 1/ 6 c

Signals and Systems Lecture 6: Fourier Applications

y(n)= Aa n u(n)+bu(n) b m sin(2πmt)= b 1 sin(2πt)+b 2 sin(4πt)+b 3 sin(6πt)+ m=1 x(t)= x = 2 ( b b b b

FIR Filter Design using Different Window Techniques

ijdsp Workshop: Exercise 2012 DSP Exercise Objectives

AUDL Final exam page 1/7 Please answer all of the following questions.

ME scope Application Note 02 Waveform Integration & Differentiation

FFT 1 /n octave analysis wavelet

Final Exam Practice Questions for Music 421, with Solutions

Developer Techniques Sessions

Choosing the Best ADC Architecture for Your Application Part 3:

One-Dimensional FFTs. Figure 6.19a shows z(t), a continuous cosine wave with a period of T 0. . Its Fourier transform, Z(f) is two impulses, at 1/T 0

Pulse Compression. Since each part of the pulse has unique frequency, the returns can be completely separated.

Signal Processing Toolbox

Removal of Line Noise Component from EEG Signal

Laboratory Assignment 5 Amplitude Modulation

TRANSFORMS / WAVELETS

Experiment 6: Multirate Signal Processing

P a g e 1 ST985. TDR Cable Analyzer Instruction Manual. Analog Arts Inc.

ECE 556 BASICS OF DIGITAL SPEECH PROCESSING. Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2

FAST Fourier Transform (FFT) and Digital Filtering Using LabVIEW

Transcription:

Chapter 5 Window Functions 5.1 Introduction As discussed in section (3.7.5), the DTFS assumes that the input waveform is periodic with a period of N (number of samples). This is observed in table (3.1). Therefore, if the time-domain waveform completes and integer number of cycles (no greater than half the sampling frequency) over the course of the N samples, then the waveform is properly prepared for DTFS, or FFT, analysis. Often times though, this is not the case, and the resulting sampled data set represents a truncated version of the periodic signal. For example, consider a sinusoid that completes one full cycle over a period of 360 samples. If only 270 samples are taken (starting at the rising edge of the sinusoid), then the resulting waveform is displayed in figure (5.1). Figure 5.1 Truncated Sinusoid Recall that the DTFS assumes the input signal is periodic over the N samples. Therefore, the DTFS periodically extends the waveform assuming a period of N, and the DTFS actually sees the waveform in figure (5.2). As a result, there are transients (discontinuities) at integer multiples of N. These discontinuities are artificially created by 41

42 the DTFS. As discussed in section (3.7.5), the DTFS is not well suited for transient signal analysis. These transients correspond to high-frequency sinusoids that were not present in the original signal. If these frequencies are higher than the Nyquist frequency as discussed in section (3.4.6), they will appear to have frequencies between 0 Hz and half the sampling rate. In other words, they are aliased to within the unambiguous frequency range of the DTFS. This is spectral leakage at work as the energy from high frequencies due to the artificial transients leak into the frequency range of the DTFS. As discussed in section (3.7.4), spectral leakage is also caused by a sinusoid s frequency not lying directly at the center frequency of a DTFS bandpass filter [2]. Figure 5.2 Periodically Extended Version of Figure 5.1 Spectral leakage will cause the energy of the FFT spectrum to spread out instead of being concentrated at the actual frequencies that are present in the time-domain signal. The FFT spectrum will not have highly distinct peaks at the true frequencies. Instead, it will have small peaks at the true frequencies and will have a slow roll-off rate outside of these frequencies. Figure (5.3) is a sinusoid that has been sampled over an integer number of cycles. The corresponding FFT of this sinusoid is shown in figure (5.4). Notice the distinct peaks and the fast roll-off rate. In contrast, figure (5.5) represents the case where the number of samples taken does not cover an integer number of cycles; therefore, a truncated sinusoid is processed by the FFT. The FFT of this truncated

43 sinusoid is shown in figure (5.6). Notice the figure (5.6) has wider responses at the peaks and has a slower roll-off rate. Figure 5.3 Sinusoid with Four Complete Cycles Figure 5.4 FFT without Spectral Leakage

44 Figure 5.5 Sinusoid with Incomplete Cycle Figure 5.6 FFT with Spectral Leakage In order to help minimize the effects of spectral leakage, window functions (or weighting functions) can be applied to the input signal [2].

45 5.2 Window Functions A window function can be applied to an input data set in order to improve the FFT response. The time-domain data is simply multiplied by another discrete, timedomain function called a window function. These window functions tend to taper off the outside edges of the input signal. This diminishes the effect of the artificial transients produced by the periodic extension of the FFT. Several types of window functions exist and each have their own unique characteristics. Each window function is better suited for a specific type of application with a certain input signal and a certain type of desired analysis. In order to select the optimum window for an application, the user must be aware of the behavior of the input signal as well as the type of frequency analysis that is required [2]. An important aspect of window functions is that the processes of selecting the window function and the FFT algorithm are independent of each other. Since FFT algorithms are not approximations to the DTFS but are alternate methods of calculating it, all FFT algorithms produce the same result. They go about the calculations using different methods but ultimately reach the same result. In consequence, window functions can be used with any FFT algorithm. Also, the window functions can be used with any length FFT, since the input data sequence can be zero-padded to fit the FFT length as discussed in section (3.5). Another important aspect of window functions is that they do not alter the resolution of the FFT. Therefore, applying a window function to the input data set does not alter the bin spacing, or frequency spacing, in the output spectrum of the FFT [2].

46 Recall that the input data set is multiplied by the window function in the time domain. This corresponds to convolution in the frequency domain. The convolution takes the window function s spectral content, reverses it, and copies it to every point in the original signal s discrete spectral content. In other words, reversed replicas of the spectral content of the window function are centered about every frequency bin (or DTFS coefficient) of the original signal s FFT [5]. 5.3 Characteristics of Window Functions The following six characteristics are used as quality factors of each window function. By assessing the characteristics of each window function, an appropriate determination can be made as to which window function to use for a specific application. 5.3.1 Coherent Integration Gain As discussed in section (3.6.4) the DTFS leads to a coherent integration gain of N (using equation (3.1) without the normalization constant). All of the window functions, with exception to the rectangular, lead to a coherent integration gain less than N [2]. 5.3.2 Highest Sidelobe Level Each DTFS coefficient acts as a bandpass filter. As discussed in section (3.7.3), the frequency response of these filters is not ideal. Instead, the filters have a sinc-shaped frequency response with a main lobe in the center and smaller sidelobes on either side. The high sidelobe levels allow a signal that is not centered at the center frequency of the DTFS filter to produce a significant response from that particular DTFS output coefficient. A lower the sidelobe level leads to higher rejection of signals that are not centered at the center frequency of the filter [2].

47 5.3.3 Sidelobe Rolloff Ratio As frequency increases further away from the center frequency of a DTFS filter, the sidelobes discussed in section (5.3.2) begin to decrease in amplitude or remain constant. This rolloff rate usually has dimensions of decibels per decade or decibels per octave [5]. A fast rolloff, or fall-off, rate diminishes the ability for an off-center frequency component to stimulate a significant response from a DTFS filter. Therefore, a higher rolloff rate leads to higher credibility as to where the frequency component lies on the frequency axis. In other words, the DTFS becomes more frequency-selective, allowing only signals that are extremely close to the center frequency of the DTFS filter to pass through. The main-lobe width discussed in section (5.3.6) is also a contributing factor to frequency selectivity. [2]. 5.3.4 Frequency Straddle Loss Frequency straddle loss was described in section (3.7.4) as the difference between the maximum coherent integration gain and the actual achieved coherent integration gain. If a signal does not lie at the center of the DTFS bandpass filter then its contribution to the DTFS component will be reduced. This is due to the sidelobe rolloff ratio discussed in section (5.3.3). A signal that lies exactly between two adjacent filters has the lowest coherent integration gain [2]. 5.3.5 Equivalent Noise Bandwidth Noise is an inherent part of any system, and therefore its impact on the system must be understood. Generally, noise is spread across the frequency domain. White noise is evenly distributed across the frequency domain, meaning that the noise has the same magnitude at all frequencies in the spectrum. Since the DTFS filters pass the noise

48 as well as the signal, it is important to understand how much of this noise reaches the output of the filter. Consider an ideal bandpass filter with a rectangular frequency response and a gain equal to the peak gain of the DTFS filter. The equivalent noise bandwidth of the DTFS filter is the bandwidth of the ideal bandpass filter that would allow the same amount of white noise power to pass through as the DTFS filter [2]. 5.3.6 Three-dB Main Lobe Bandwidth As discussed in section (5.3.2), the DTFS filters have a sinc-shaped response with a main-lobe in the center and smaller sidelobes as frequency increases away from the center frequency of the filter. The width of this main lobe determines the range of frequencies about the center frequency of the filter which can pass through without being attenuated significantly. The 3-dB bandwidth is the range of frequencies which a signal can pass without its power being attenuated by more than a factor of 2 (or 10*LOG 10 (2) db). Having a narrower main lobe improves the accuracy of the DTFS to resolve frequencies. In contrast, a narrower main lobe reduces the range of frequencies about the center frequency that can be resolved by the DTFS [2]. 5.4 Common Window Functions Many different window functions exist and allow the user to choose from a broad range of characteristics. This section will discuss some of the more common window functions including their equations and characteristics. 5.4.1 Rectangular The rectangular window function is applied simply by not modifying the input data set before it is processed by the FFT. It is inherent in the DTFS/FFT. The equation for the rectangular window function is

49 1, for n = 0 to N -1 w( n) = (5.1) 0, elsewhere where N is the total number of samples. The peak of the highest sidelobe is 13 db below the peak of the main lobe. This corresponds to an attenuation of approximately 4.5 (or 10 (13dB/20) ) times less than that of the peak main-lobe attenuation [2]. This attenuation is in terms of the magnitude of the frequency component as opposed to power. This is considered a poor sidelobe performance compared to the other window functions. The rectangular window function redeems itself by having a narrower main lobe and higher coherent integration gain than any of the other weighting functions. This causes the rectangular window to give the smallest output noise power but also the highest straddle loss. Since the rectangular window function has the lowest output noise power and highest coherent integration gain, it is better suited for applications where maximum signal-to-noise ratios are required [2]. 5.4.2 Triangular The triangular window function is defined in the time domain by equation (5.2): n N 2 *, for n = 0 to N 2 N n N w( n) = 2 *, for n = + 1to N - 1 (5.2) N 2 0, elsewhere The triangular window function has a highest sidelobe level of -27 db, an improvement over the rectangular window function. It also has a higher sidelobe level rolloff ratio of 12 and a lower straddle loss. As shown in table (5.1) the triangular window function has a higher output noise power and wider 3-dB main lobe width [2].

50 5.4.3 Sine Lobe The sine lobe window function is defined in the time domain by equation (5.3): πn sin, for n = 0 to N - 1 w( n) = N (5.3) 0, elsewhere The sine lobe window function improves the coherent integration gain over the triangular window function. The highest sidelobe level is between those of the rectangular and triangular window functions. The sine lobe window function has approximately the same sidelobe rolloff ratio as the triangular window function [2]. 5.4.4 Hanning The Hanning window function is defined in the time domain by equation (5.4): 1 πn ( 1 cos ), for n = 0 to N - 1 w( n) = 2 N (5.4) 0, elsewhere The Hanning window function is accompanied by an improvement in the highest sidelobe level and sidelobe rolloff ratio over the previous window functions [2]. 5.4.5 Hamming The Hamming window function is defined in the time domain by equation (5.5): 2πn ( 0.54 0.46 * cos ), for n = 0 to N - 1 w( n) = N (5.5) 0, elsewhere The Hamming window function provides an even greater improvement to the highest sidelobe level but is accompanied by a poorer sidelobe rolloff ratio (equal to that of the rectangular window function).

51 5.4.6 Blackman The Blackman window function is defined in the time domain by equation (5.6): 2πn 4πn ( 0.42 0.50 * cos + 0.08 * cos, for n = 0 to N - 1 w( n) = N N (5.6) 0, elsewhere The Blackman window function has the lowest coherent integration gain out of the six window functions discussed in this chapter, but it also has the lowest of the sidelobe level responses. The sidelobe rolloff ratio is equal to that of the Hanning window function. This window function provides high rejection of signals outside of its main lobe [2]. The characteristics discussed above about the window functions can be observed in table (5.1) below [2]. Window Function Coherent Integration Gain Highest Sidelobe Level (db) Sidelobe Rolloff Ratio Frequency Straddle Loss (db) Equivalent Noise Bandwidth 3-dB Bandwidth Rectangular 1.00-13 -6 3.92 1.00 0.89 Triangular 0.50-27 -12 1.82 1.33 1.28 Sine Lobe 0.64-23 -12 2.10 1.23 1.20 Hanning 0.50-32 -18 1.42 1.50 1.44 Hamming 0.54-43 -6 1.78 1.36 1.30 Blackman 0.42-58 -18 1.10 1.73 1.68 Table 5.1 Window Function Comparison Chart

52 5.5 Summary The weaknesses of the DTFS discussed in chapter 3 as well as the usual truncation of a periodic signal provide a need to manipulate the data before it is processed by the DTFS or FFT. This can be done easily by using window functions, or discrete time-domain functions that are designed to minimize the weaknesses inherent in the DTFS. These improvements, though, do not come without flaw. As with most engineering processes, tradeoffs are involved in applying window functions. The user must weigh each characteristic of the window functions and determine which are most important and which are least important to the specific application. Several other window functions can be found in [2] in addition to the window functions discussed above in section (5.4).