Generates a window function of a given type and length.
The desired window length, in points. If a vector is given, the window will have the same length as the vector.
A string indicating the type of window desired. For the sake of simplicity, all window names are in lowercase. Supported types are: rectangular, hann, hamming, cosine, bartlett, gausian, and kaiser.
The parameter necessary to generate the window, if appropriate. At the moment, the only windows that require parameters are the Kaiser and Gaussian windows. By default, these are set to 2 for kaiser and 0.4 for gaussian windows.
A window function is generated, of the type and length specified by the user. This is returned as a numeric vector.
Santiago Barreda <email@example.com>
1 2 3 4 5