HOME

TheInfoList



OR:

The
Fourier transform A Fourier transform (FT) is a mathematical transform that decomposes functions into frequency components, which are represented by the output of the transform as a function of frequency. Most commonly functions of time or space are transformed ...
of a function of time, s(t), is a complex-valued function of frequency, S(f), often referred to as a frequency spectrum. Any linear time-invariant operation on s(t) produces a new spectrum of the form H(f)•S(f), which changes the relative magnitudes and/or angles ( phase) of the non-zero values of S(f). Any other type of operation creates new frequency components that may be referred to as spectral leakage in the broadest sense. Sampling, for instance, produces leakage, which we call '' aliases'' of the original spectral component. For
Fourier transform A Fourier transform (FT) is a mathematical transform that decomposes functions into frequency components, which are represented by the output of the transform as a function of frequency. Most commonly functions of time or space are transformed ...
purposes, sampling is modeled as a product between s(t) and a
Dirac comb In mathematics, a Dirac comb (also known as shah function, impulse train or sampling function) is a periodic function with the formula \operatorname_(t) \ := \sum_^ \delta(t - k T) for some given period T. Here ''t'' is a real variable and th ...
function. The spectrum of a product is the
convolution In mathematics (in particular, functional analysis), convolution is a mathematical operation on two functions ( and ) that produces a third function (f*g) that expresses how the shape of one is modified by the other. The term ''convolution'' ...
between S(f) and another function, which inevitably creates the new frequency components. But the term 'leakage' usually refers to the effect of ''windowing'', which is the product of s(t) with a different kind of function, the
window function In signal processing and statistics, a window function (also known as an apodization function or tapering function) is a mathematical function that is zero-valued outside of some chosen interval, normally symmetric around the middle of the int ...
. Window functions happen to have finite duration, but that is not necessary to create leakage. Multiplication by a time-variant function is sufficient.


Spectral analysis

The
Fourier transform A Fourier transform (FT) is a mathematical transform that decomposes functions into frequency components, which are represented by the output of the transform as a function of frequency. Most commonly functions of time or space are transformed ...
of the function is zero, except at frequency ±''ω''. However, many other functions and waveforms do not have convenient closed-form transforms. Alternatively, one might be interested in their spectral content only during a certain time period. In either case, the Fourier transform (or a similar transform) can be applied on one or more finite intervals of the waveform. In general, the transform is applied to the product of the waveform and a window function. Any window (including rectangular) affects the spectral estimate computed by this method. The effects are most easily characterized by their effect on a sinusoidal s(t) function, whose unwindowed Fourier transform is zero for all but one frequency. The customary frequency of choice is 0 Hz, because the windowed Fourier transform is simply the Fourier transform of the window function itself (see ): :\mathcal\ = \mathcal\. When both sampling and windowing are applied to s(t), in either order, the leakage caused by windowing is a relatively localized spreading of frequency components, with often a blurring effect, whereas the aliasing caused by sampling is a periodic repetition of the entire blurred spectrum.


Choice of window function

Windowing of a simple waveform like causes its Fourier transform to develop non-zero values (commonly called spectral leakage) at frequencies other than ''ω''. The leakage tends to be worst (highest) near ''ω'' and least at frequencies farthest from ''ω''. If the waveform under analysis comprises two sinusoids of different frequencies, leakage can interfere with our ability to distinguish them spectrally. Possible types of interference are often broken down into two opposing classes as follows: If the component frequencies are dissimilar and one component is weaker, then leakage from the stronger component can obscure the weaker one's presence. But if the frequencies are too similar, leakage can render them ''unresolvable'' even when the sinusoids are of equal strength. Windows that are effective against the first type of interference, namely where components have dissimilar frequencies and amplitudes, are called ''high
dynamic range Dynamic range (abbreviated DR, DNR, or DYR) is the ratio between the largest and smallest values that a certain quantity can assume. It is often used in the context of signals, like sound and light. It is measured either as a ratio or as a base ...
''. Conversely, windows that can distinguish components with similar frequencies and amplitudes are called ''high resolution''. The rectangular window is an example of a window that is ''high resolution'' but ''low dynamic range'', meaning it is good for distinguishing components of similar amplitude even when the frequencies are also close, but poor at distinguishing components of different amplitude even when the frequencies are far away. High-resolution, low-dynamic-range windows such as the rectangular window also have the property of high ''sensitivity'', which is the ability to reveal relatively weak sinusoids in the presence of additive random noise. That is because the noise produces a stronger response with high-dynamic-range windows than with high-resolution windows. At the other extreme of the range of window types are windows with high dynamic range but low resolution and sensitivity. High-dynamic-range windows are most often justified in ''wideband applications'', where the spectrum being analyzed is expected to contain many different components of various amplitudes. In between the extremes are moderate windows, such as Hann and
Hamming Hamming may refer to: * Richard Hamming (1915–1998), American mathematician * Hamming(7,4), in coding theory, a linear error-correcting code * Overacting, or acting in an exaggerated way See also * Hamming code, error correction in telecom ...
. They are commonly used in ''narrowband applications'', such as the spectrum of a telephone channel. In summary, spectral analysis involves a trade-off between resolving comparable strength components with similar frequencies (''high resolution / sensitivity'') and resolving disparate strength components with dissimilar frequencies (''high dynamic range''). That trade-off occurs when the window function is chosen.


Discrete-time signals

When the input waveform is time-sampled, instead of continuous, the analysis is usually done by applying a window function and then a
discrete Fourier transform In mathematics, the discrete Fourier transform (DFT) converts a finite sequence of equally-spaced samples of a function into a same-length sequence of equally-spaced samples of the discrete-time Fourier transform (DTFT), which is a comple ...
(DFT). But the DFT provides only a sparse sampling of the actual
discrete-time Fourier transform In mathematics, the discrete-time Fourier transform (DTFT) is a form of Fourier analysis that is applicable to a sequence of values. The DTFT is often used to analyze samples of a continuous function. The term ''discrete-time'' refers to the ...
(DTFT) spectrum. Figure 2, row 3 shows a DTFT for a rectangularly-windowed sinusoid. The actual frequency of the sinusoid is indicated as "13" on the horizontal axis. Everything else is leakage, exaggerated by the use of a logarithmic presentation. The unit of frequency is "DFT bins"; that is, the integer values on the frequency axis correspond to the frequencies sampled by the DFT. So the figure depicts a case where the actual frequency of the sinusoid coincides with a DFT sample, and the maximum value of the spectrum is accurately measured by that sample. In row 4, it misses the maximum value by ½ bin, and the resultant measurement error is referred to as ''scalloping loss'' (inspired by the shape of the peak). For a known frequency, such as a musical note or a sinusoidal test signal, matching the frequency to a DFT bin can be prearranged by choices of a sampling rate and a window length that results in an integer number of cycles within the window.


Noise bandwidth

The concepts of resolution and dynamic range tend to be somewhat subjective, depending on what the user is actually trying to do. But they also tend to be highly correlated with the total leakage, which is quantifiable. It is usually expressed as an equivalent bandwidth, B. It can be thought of as redistributing the DTFT into a rectangular shape with height equal to the spectral maximum and width B. The more the leakage, the greater the bandwidth. It is sometimes called ''noise equivalent bandwidth'' or ''equivalent noise bandwidth'', because it is proportional to the average power that will be registered by each DFT bin when the input signal contains a random noise component (or is just random noise). A graph of the
power spectrum The power spectrum S_(f) of a time series x(t) describes the distribution of power into frequency components composing that signal. According to Fourier analysis, any physical signal can be decomposed into a number of discrete frequencies, ...
, averaged over time, typically reveals a flat '' noise floor'', caused by this effect. The height of the noise floor is proportional to B. So two different window functions can produce different noise floors, as seen in figures 1 and 3.


Processing gain and losses

In
signal processing Signal processing is an electrical engineering subfield that focuses on analyzing, modifying and synthesizing '' signals'', such as sound, images, and scientific measurements. Signal processing techniques are used to optimize transmissions, ...
, operations are chosen to improve some aspect of quality of a signal by exploiting the differences between the signal and the corrupting influences. When the signal is a sinusoid corrupted by additive random noise, spectral analysis distributes the signal and noise components differently, often making it easier to detect the signal's presence or measure certain characteristics, such as amplitude and frequency. Effectively, the
signal-to-noise ratio Signal-to-noise ratio (SNR or S/N) is a measure used in science and engineering that compares the level of a desired signal to the level of background noise. SNR is defined as the ratio of signal power to the noise power, often expressed in de ...
(SNR) is improved by distributing the noise uniformly, while concentrating most of the sinusoid's energy around one frequency. ''Processing gain'' is a term often used to describe an SNR improvement. The processing gain of spectral analysis depends on the window function, both its noise bandwidth (B) and its potential scalloping loss. These effects partially offset, because windows with the least scalloping naturally have the most leakage. Figure 3 depicts the effects of three different window functions on the same data set, comprising two equal strength sinusoids in additive noise. The frequencies of the sinusoids are chosen such that one encounters no scalloping and the other encounters maximum scalloping. Both sinusoids suffer less SNR loss under the Hann window than under the Blackman-Harris window. In general (as mentioned earlier), this is a deterrent to using high-dynamic-range windows in low-dynamic-range applications.


Symmetry

The formulas provided at produce discrete sequences, as if a continuous window function has been "sampled". (See an example at Kaiser window.) Window sequences for spectral analysis are either ''symmetric'' or 1-sample short of symmetric (called ''periodic'', ''DFT-even'', or ''DFT-symmetric''). For instance, a true symmetric sequence, with its maximum at a single center-point, is generated by the
MATLAB MATLAB (an abbreviation of "MATrix LABoratory") is a proprietary multi-paradigm programming language and numeric computing environment developed by MathWorks. MATLAB allows matrix manipulations, plotting of functions and data, implementat ...
function hann(9,'symmetric'). Deleting the last sample produces a sequence identical to hann(8,'periodic'). Similarly, the sequence hann(8,'symmetric') has two equal center-points. Some functions have one or two zero-valued end-points, which are unnecessary in most applications. Deleting a zero-valued end-point has no effect on its DTFT (spectral leakage). But the function designed for  + 1 or  + 2 samples, in anticipation of deleting one or both end points, typically has a slightly narrower main lobe, slightly higher sidelobes, and a slightly smaller noise-bandwidth.


DFT-symmetry

The predecessor of the DFT is the
finite Fourier transform __NOTOC__ In mathematics the finite Fourier transform may refer to either *another name for discrete-time Fourier transform (DTFT) of a finite-length series.  E.g., F.J.Harris (pp. 52–53) describes the ''finite Fourier transform'' as a "co ...
, and window functions were "always an odd number of points and exhibit even symmetry about the origin". In that case, the DTFT is entirely real-valued. When the same sequence is shifted into a ''DFT data window'', \le n \le N the DTFT becomes complex-valued except at frequencies spaced at regular intervals of 1/N.  Thus, when sampled by an N-length DFT, the samples (called DFT coefficients) are still real-valued. An approximation is to truncate the +1-length sequence (effectively w 0), and compute an N-length DFT. The DTFT (spectral leakage) is slightly affected, but the samples remain real-valued. The terms ''DFT-even'' and ''periodic'' refer to the idea that if the truncated sequence were repeated periodically, it would be even-symmetric about n=0, and its DTFT would be entirely real-valued. But the actual DTFT is generally complex-valued, except for the N DFT coefficients. Spectral plots like those at , are produced by sampling the DTFT at much smaller intervals than 1/N and displaying only the magnitude component of the complex numbers.


Periodic summation

An exact method to sample the DTFT of an +1-length sequence at intervals of 1/N is described at . Essentially, w /math> is combined with w /math> (by addition), and an N-point DFT is done on the truncated sequence. Similarly, spectral analysis would be done by combining the n=0 and n=N data samples before applying the truncated symmetric window. That is not a common practice, even though truncated windows are very popular.


Convolution

The appeal of DFT-symmetric windows is explained by the popularity of the
fast Fourier transform A fast Fourier transform (FFT) is an algorithm that computes the discrete Fourier transform (DFT) of a sequence, or its inverse (IDFT). Fourier analysis converts a signal from its original domain (often time or space) to a representation in ...
(FFT) algorithm for implementation of the DFT, because truncation of an odd-length sequence results in an even-length sequence. Their real-valued DFT coefficients are also an advantage in certain esoteric applications where windowing is achieved by means of
convolution In mathematics (in particular, functional analysis), convolution is a mathematical operation on two functions ( and ) that produces a third function (f*g) that expresses how the shape of one is modified by the other. The term ''convolution'' ...
between the DFT coefficients and an unwindowed DFT of the data. In those applications, DFT-symmetric windows (even or odd length) from the Cosine-sum family are preferred, because most of their DFT coefficients are zero-valued, making the convolution very efficient.


Some window metrics

When selecting an appropriate window function for an application, this comparison graph may be useful. The frequency axis has units of FFT "bins" when the window of length ''N'' is applied to data and a transform of length ''N'' is computed. For instance, the value at frequency ½ "bin" is the response that would be measured in bins ''k'' and ''k'' + 1 to a sinusoidal signal at frequency ''k'' + ½. It is relative to the maximum possible response, which occurs when the signal frequency is an integer number of bins. The value at frequency ½ is referred to as the maximum ''scalloping loss'' of the window, which is one metric used to compare windows. The rectangular window is noticeably worse than the others in terms of that metric. Other metrics that can be seen are the width of the main lobe and the peak level of the sidelobes, which respectively determine the ability to resolve comparable strength signals and disparate strength signals. The rectangular window (for instance) is the best choice for the former and the worst choice for the latter. What cannot be seen from the graphs is that the rectangular window has the best noise bandwidth, which makes it a good candidate for detecting low-level sinusoids in an otherwise
white noise In signal processing, white noise is a random signal having equal intensity at different frequencies, giving it a constant power spectral density. The term is used, with this or similar meanings, in many scientific and technical disciplines ...
environment. Interpolation techniques, such as zero-padding and frequency-shifting, are available to mitigate its potential scalloping loss.


See also

* *
Knife-edge effect Diffraction is defined as the interference or bending of waves around the corners of an obstacle or through an aperture into the region of geometrical shadow of the obstacle/aperture. The diffracting object or aperture effectively becomes a s ...
, spatial analog of truncation * Gibbs phenomenon


Notes


Page citations


References

{{reflist, 1, refs= {{cite book , url=https://books.google.com/books?id=V_JSAAAAMAAJ , title=Communication Systems: An Introduction to Signals and Noise in Electrical Communication , first=A. Bruce , last=Carlson , publisher=McGraw-Hill , year=1986 , isbn=978-0-07-009960-9 {{cite web , url=http://www.mathworks.com/help/signal/ref/hann.html , title=Hann (Hanning) window - MATLAB hann , website=www.mathworks.com , access-date=2020-02-12 {{cite web , url=http://www.mathworks.com/help/dsp/ref/windowfunction.html , title=Window Function , website=www.mathworks.com , access-date=2019-04-14 {{cite patent , title=Wideband communication intercept and direction finding device using hyperchannelization , invent1=Carlin,Joe , invent2=Collins,Terry , invent3=Hays,Peter , invent4=Hemmerdinger,Barry E. Kellogg,Robert L. Kettig,Robert L. Lemmon,Bradley K. Murdock,Thomas E. Tamaru,Robert S. Ware,Stuart M. , pubdate=1999-12-10 , fdate=1999-12-10 , gdate=2005-05-24 , country=US , status=patent , number=6898235 , also available at https://patentimages.storage.googleapis.com/4d/39/2a/cec2ae6f33c1e7/US6898235.pdf {{cite journal , ref=Harris , doi=10.1109/PROC.1978.10837 , last=Harris , first=Fredric J. , title=On the use of Windows for Harmonic Analysis with the Discrete Fourier Transform , journal=Proceedings of the IEEE , volume=66 , issue=1 , pages=51–83 , date=Jan 1978 , url=http://web.mit.edu/xiphmont/Public/windows.pdf, citeseerx=10.1.1.649.9880 , bibcode=1978IEEEP..66...51H , s2cid=426548 ''The fundamental 1978 paper on FFT windows by Harris, which specified many windows and introduced key metrics used to compare them.'' {{cite journal , ref=Nuttall , doi =10.1109/TASSP.1981.1163506 , last =Nuttall , first =Albert H. , title =Some Windows with Very Good Sidelobe Behavior , journal =IEEE Transactions on Acoustics, Speech, and Signal Processing , volume =29 , issue =1 , pages =84–91 , date =Feb 1981 , url =https://zenodo.org/record/1280930 ''Extends Harris' paper, covering all the window functions known at the time, along with key metric comparisons.'' {{cite techreport , first=G. , last=Heinzel , last2=Rüdiger , first2=A. , last3=Schilling , first3=R. , title=Spectrum and spectral density estimation by the Discrete Fourier transform (DFT), including a comprehensive list of window functions and some new flat-top windows , id=395068.0 , institution=Max Planck Institute (MPI) für Gravitationsphysik / Laser Interferometry & Gravitational Wave Astronomy , year=2002 , url=http://edoc.mpg.de/395068 , access-date=2013-02-10 Also available at https://pure.mpg.de/rest/items/item_152164_1/component/file_152163/content {{cite web , url=https://ccrma.stanford.edu/~jos/sasp/Matlab_Hann_Window.html , title=Matlab for the Hann Window , website=ccrma.stanford.edu , access-date=2020-09-01 {{cite web , last1=Lyons , first1=Richard , title=Windowing Functions Improve FFT Results , url=https://www.edn.com/windowing-functions-improve-fft-results-part-i/ , website=EDN , publisher=TRW , access-date=8 August 2020 , location=Sunnyvale, CA , date=1 June 1998 {{cite web , last1=Fulton , first1=Trevor , title=DP Numeric Transform Toolbox , url=http://herschel.esac.esa.int/hcss-doc-13.0/load/hcss_drm/ia/numeric/toolbox/xform/index.html , website=herschel.esac.esa.int , publisher=Herschel Data Processing , access-date=8 August 2020 , date=4 March 2008 {{cite journal , last1=Rohling , first1=H. , last2=Schuermann , first2=J. , title=Discrete time window functions with arbitrarily low sidelobe level , url=https://www.sciencedirect.com/science/article/abs/pii/0165168483900191 , journal=Signal Processing , publisher=AEG-Telefunken , access-date=8 August 2020 , location=Forschungsinstitut Ulm, Sedanstr, Germany , pages=127–138 , doi=10.1016/0165-1684(83)90019-1 , date=March 1983 , volume=5 , issue=2 , quote=It can be shown, that the DFT-even sampling technique as proposed by Harris is not the most suitable one. {{cite book , last1=Poularikas , first1=A.D. , editor1-last=Poularikas , editor1-first=Alexander D. , title=The Handbook of Formulas and Tables for Signal Processing , date=1999 , publisher=CRC Press LLC , location=Boca Raton , isbn=0849385792 , url=http://dsp-book.narod.ru/HFTSP/8579ch07.pdf , access-date=8 August 2020 , chapter=7.3.1 , quote=Windows are even (about the origin) sequences with an odd number of points. The right-most point of the window will be discarded. {{cite web , last1=Robertson , first1=Neil , title=Evaluate Window Functions for the Discrete Fourier Transform , url=https://www.dsprelated.com/showarticle/1211.php , website=DSPRelated.com , publisher=The Related Media Group , access-date=9 August 2020 , date=18 December 2018 Revised 22 February 2020. {{cite web , last1=Puckette , first1=Miller , title=Fourier analysis of non-periodic signals , url=http://msp.ucsd.edu/techniques/latest/book-html/node171.html#12499 , website=msp.ucsd.edu , publisher=UC San Diego , access-date=9 August 2020 , date=30 December 2006 Fourier analysis Digital signal processing