Description Usage Arguments Details Value Author(s) References Examples
This function will return the results of a tapering function that can be used prior to computing the spectrum of a EEG data channel.
1 |
N |
Width, in samples, of a discrete-time, symmetrical window function w[n], 0 ≤q n ≤q N - 1. N must be a positive integer. Default: 512. |
type |
Type of tapering function; must be one of the following:
|
args |
Further arguments needed for adjustable windows ( |
In signal processing, 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. For instance, a function that is constant inside the interval and zero elsewhere is called a rectangular window, which describes the shape of its graphical representation. When another function or waveform/data-sequence is multiplied by a window function, the product is also zero-valued outside the interval: all that is left is the part where they overlap, the "view through the window".
Tapering functions are applied to time series data such as the EEG before spectral analysis to avoid "spectral leakage", which arises because the FFT can only be performed on limited chunks of data resulting in discontinuities at the edges of those chunks. Multiplying the chunk of data by a window weighting function may taper the edges to (near) zero, thus reducing the discontinuities and the spectral leaking. The "cost" of this procedure is that in the frequency domain the spectral peaks are widened, and the side lobes are not zero. Tapering functions differ in the trade-off between spectral peak width and side lobe attentuation.
Hamming and Hann tapering functions are reasonable choices for many applications, and are often used in EEG analysis. They provide a compromise between the spectral peak spreading across frequency bins and side lobe attenuation. If very low side lobes are needed, a Blackman-Harris window may be required (at the expense of a broader main lobe).
A vector of length N
containing the windowing coefficients. When N is an odd number, the non-flat windows have
a singular maximum point. When N is even, they have a double maximum.
Geert van Boxtel
The tapering functions, their optional arguments, and their descriptions above are derived from https://en.wikipedia.org/wiki/Window_function
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.