triang | R Documentation |
Return the filter coefficients of a triangular window of length n
.
triang(n)
n |
Window length, specified as a positive integer. |
Unlike the Bartlett window, triang
does not go to zero at the edges of
the window. For odd n
, triang(n)
is equal to bartlett(m +
2)
except for the zeros at the edges of the window.
triangular 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.
bartlett
t <- triang(64)
plot (t, type = "l", xlab = "Samples", ylab =" Amplitude")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.