hann | R Documentation |
Return the filter coefficients of a Hann window of length n
.
hann(n, method = c("symmetric", "periodic"))
hanning(n, method = c("symmetric", "periodic"))
n |
Window length, specified as a positive integer. |
method |
Character string. Window sampling method, specified as:
|
The Hann window is a member of the family of cosine sum windows. It was named after Julius von Hann, and is sometimes referred to as Hanning, presumably due to its linguistic and formulaic similarities to Hamming window.
Hann window, returned as a vector.
Andreas Weingessel, Andreas.Weingessel@ci.tuwien.ac.at.
Conversion to R by Geert van Boxtel G.J.M.vanBoxtel@gmail.com.
h <- hann(64)
plot (h, type = "l", xlab = "Samples", ylab =" Amplitude")
hs = hann(64,'symmetric')
hp = hann(63,'periodic')
plot (hs, type = "l", xlab = "Samples", ylab =" Amplitude")
lines(hp, col="red")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.