The reasons for examining segments of a longer function include detection of transient events and time-averaging of frequency spectra.
The duration of the segments is determined in each application by requirements like time and frequency resolution.
But that method also changes the frequency content of the signal by an effect called spectral leakage.
Window functions allow us to distribute the leakage spectrally in different ways, according to the needs of the particular application.
In typical applications, the window functions used are non-negative, smooth, "bell-shaped" curves.
A more general definition of window functions does not require them to be identically zero outside an interval, as long as the product of the window multiplied by its argument is square integrable, and, more specifically, that the function goes sufficiently rapidly toward zero.
Any window (including rectangular) affects the spectral estimate computed by this method.
[7][8][9] Window functions are sometimes used in the field of statistical analysis to restrict the set of data being analyzed to a range near a given point, with a weighting factor that diminishes the effect of points farther away from the portion of the curve being fit.
See Welch method of power spectral analysis and the modified discrete cosine transform.
[13] The separable forms of all other window functions have corners that depend on the choice of the coordinate axes.
The rectangular window provides the minimum mean square error estimate of the Discrete-time Fourier transform, at the cost of other issues discussed.
[19] Alternative definitions sample the appropriate normalized B-spline basis functions instead of convolving discrete-time windows.
For even-integer values of α these functions can also be expressed in cosine-sum form: This family is also known as generalized cosine windows.
The customary cosine-sum windows for case K = 1 have the form which is easily (and often) confused with its zero-phase version: Setting
[33][34][35] Approximation of the coefficients to two decimal places substantially lowers the level of sidelobes,[16] to a nearly equiripple condition.
[38] These exact values place zeros at the third and fourth sidelobes,[16] but result in a discontinuity at the edges and a 6 dB/oct fall-off.
A generalization of the Hamming family, produced by adding more shifted sinc functions, meant to minimize side-lobe levels[40][41] A flat top window is a partially negative-valued window that has minimal scalloping loss in the frequency domain.
Flat top windows can be designed using low-pass filter design methods,[42] or they may be of the usual cosine-sum variety: The Matlab variant has these coefficients: Other variations are available, such as sidelobes that roll off at the cost of higher values near the main lobe.
[46] Since the log of a Gaussian produces a parabola, this can be used for nearly exact quadratic interpolation in frequency estimation.
The so-called "Planck-taper" window is a bump function that has been widely used[53] in the theory of partitions of unity in manifolds.
Its use as a window function in signal processing was first suggested in the context of gravitational-wave astronomy, inspired by the Planck distribution.
[54] It is defined as a piecewise function: The amount of tapering is controlled by the parameter ε, with smaller values giving sharper transitions.
The DPSS (discrete prolate spheroidal sequence) or Slepian window maximizes the energy concentration in the main lobe,[55] and is used in multitaper spectral analysis, which averages out noise in the spectrum and reduces information loss at the edges of the window.
:[67] Tn(x) is the n-th Chebyshev polynomial of the first kind evaluated in x, which can be computed using and is the unique positive real solution to
Uncommon to other windows, it has an additional parameter which can be used to set the rate at which side-lobes decrease (or increase) in amplitude.
[75] It has two tunable parameters, ε from the Planck-taper and α from the Kaiser window, so it can be adjusted to fit the requirements of a given signal.
it has no side-lobes, as its Fourier transform drops off forever away from the main lobe without local minima.
[78] Therefore, a GAP window function can be developed with designed spectral properties depending on the specific application.
However, there are window functions that are asymmetric, such as the Gamma distribution used in FIR implementations of Gammatone filters.
These asymmetries are used to reduce the delay when using large window sizes, or to emphasize the initial transient of a decaying pulse.