window
Parameterless window creation (rectangular, Hann, Hamming, triangular or Blackman)
Namespace: dsp::filter
Prototype
Vecf window(cstring type, int n, bool symetrical=true)
Parameters
type | Window choice: "re" (rectangular), "hn" (Hann), "hm" (Hamming), "tr" (triangular), "bm" (Blackman). |
n | Number of points. |
symetrical | If true, realization of window symetrical around its center point (which should be done for the FIR filter design), otherwise realization of a periodical window (which is better for spectral analysis applications). |
Returns
Column vector with the window coefficients (dimension of vector is n
)
Description
This function will create a simple window, defined without parameter (apart from its dimension and whether it should be symetrical or not).
Example: creation of a Von Hann window (also called Hanning)
Hann Window