flattopwin
A weighted window with a flat top.
| Library |
|
Arguments
Input arguments
# L — window length
+
a positive integer
Details
The window length, set as a positive integer.
If you ask L as a non-integer number, the function will round it to the nearest integer value.
|
| Типы данных |
|
# sflag — window selection
+
"symmetric" (by default) | "periodic"
Details
The window selection method, set as follows:
-
"symmetric"— use this value when using windows to design filters.; -
"periodic"— use this value when using windows for spectral analysis. When selecting a value"periodic", functionflattopwincalculates the window lengthL + 1and returns the firstLpoints. The missing endpoint is the beginning of the next period of periodic expansion of the sequence. Therefore, the sequence satisfies the assumption of the periodicity of the discrete Fourier transform.
| Типы данных |
|
# typeName — type of output data
+
Float64 (by default) | Float32
Output arguments
# w — a window with a flat top
+
column vector
Details
A flat-topped window returned as a column vector.
Algorithms
Flat-topped windows are the sum of cosines. The coefficients of a flat-top window are calculated using the following formula:
where . The coefficient values are shown in the table below.
| Ratio | Meaning |
|---|---|
|
|
|
|
|
|
|
|
|
|
Flat-topped windows have very low ripple in the bandwidth ( dB) and are used mainly for calibration. Their bandwidth is approximately in 2.5 It’s twice as wide as Hannah’s window.
Literature
-
D’Antona, Gabriele, and A. Ferrero. Digital Signal Processing for Measurement Systems. New York: Springer Media, 2006, pp. 70–72.
-
Gade, Svend, and Henrik Herlufsen. «Use of Weighting Functions in DFT/FFT Analysis (Part I).» Windows to FFT Analysis (Part I): Brüel & Kjær Technical Review. Vol. x, Number 3, 1987, pp. 1–28.