Window Maker

<array> output = makeWindow(<string> Window Type, <number> Window Size)

This function creates a filter window of type Window Type, and length Window Size.  Use the following window types (as shown in the diagram below):

 

Bartlett

The Bartlett window is a triangular window with non-zero endpoints.

Blackman

The Blackman window is based on a cosine function.  It has less sideband leakage than the comparable Hamming and Hanning windows.

Hanning

The Hanning window (sometime called the Hann window) is based on a raised cosine function.

Hamming

The Hamming window is similar to the Hanning window, but optimized to minimize the nearest side-lobe frequency content.

Triangular

The triangular window is simpler than the cosine-based windows, but has much higher side-lobes frequencies.

Boxcar

The Boxcar is a rectangular window.  It will lead to discontinuities at the edge of each window.