bartlett | R Documentation |
Return the filter coefficients of a Bartlett (triangular) window.
bartlett(n)
n |
Window length, specified as a positive integer. |
The Bartlett window is very similar to a triangular window as returned by the
triang
function. However, the Bartlett window always has zeros
at the first and last samples, while the triangular window is nonzero at
those points.
Bartlett window, returned as a vector. If you specify a one-point
window (n = 1)
, the value 1 is returned.
Andreas Weingessel, Andreas.Weingessel@ci.tuwien.ac.at. Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.
triang
bw <- bartlett(64)
plot (bw, type = "l", xlab = "Samples", ylab =" Amplitude")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.