Window functions find many uses in signal processing,
including spectral analysis and filter design.
Window functions are usually applied to a signal
before its Fourier transform is computed.
class represents window functions. The
class provides static methods that can be used to construct the most commonly used window functions.
Creating window functions
Window functions are created by calling a method
on the WindowFunctions.
All methods take the length of the window as the first parameter.
All window functions are normalized so the largest value is 1.
(For windows with an even number of samples, this value may not appear.)
Some methods have an overload that takes an additional parameter of type
The window is symmetrical about its center point.
The window can be applied to a signal with implicit periodicity.
The following window functions are available:
A Bartlett window.
A Blackman window with an optional parameter (default value is 0.16>).
A Blackman-Harris window.
A Chebyshev window with the specified sidelobe attenuation in dB.
A cosine window.
A flat top window.
A Gaussian window with the specified standard deviation (must be less than 0.5).
A Hamming window.
A Hann or Hanning window.
A modified Bartlett-Hann window.
A Blackman-Nuttal window.
A rectangular window.
A triangular window.
A Tukey window with specified ratio of the tapered section to the constant section.
Window functions are applied by multiplying the components
of a signal with the corresponding weight in the window function.
type has a multiplication operator and corresponding static
method that performs this operation on a real signal, represented by a
or a complex signal, represented by a
VectorT of ComplexT.
The original signal is unmodified.
The resulting signal vector always has the same length
as the original signal. If a window is shorter than the signal, then the
trailing part of the result is padded with zeros.
Individual weights of the window can be accessed
indexer property. All weights can also be obtained in an array or a
by calling the