flattopwin | R Documentation |
Return the filter coefficients of a flat top window.
flattopwin(n, method = c("symmetric", "periodic"))
n |
Window length, specified as a positive integer. |
method |
Character string. Window sampling method, specified as:
|
The Flat Top window is defined by the function:
f(w) = 1 - 1.93 cos(2 \pi w) + 1.29 cos(4 \pi w) - 0.388 cos(6 \pi w) +
0.0322 cos(8 \pi w)
where w = i/(n-1)
for i=0:n-1
for a symmetric window, or
w = i/n
for i=0:n-1
for a periodic window. The default is
symmetric. The returned window is normalized to a peak of 1 at w = 0.5.
Flat top windows have very low passband ripple (< 0.01 dB) and are used primarily for calibration purposes. Their bandwidth is approximately 2.5 times wider than a Hann window.
Flat top window, returned as a vector.
Paul Kienzle, pkienzle@users.sf.net.
Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.
ft <- flattopwin(64)
plot (ft, type = "l", xlab = "Samples", ylab =" Amplitude")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.