rectwin function

Rectangular window

Rectangular window

Return the filter coefficients of a rectangular window of length n.

rectwin(n)

Arguments

  • n: Window length, specified as a positive integer.

Returns

rectangular window, returned as a vector.

Details

The output of the rectwin function with input n can also be created using the rep function: w <- rep(1L, n)

Examples

r <- rectwin(64) plot (r, type = "l", xlab = "Samples", ylab =" Amplitude", ylim = c(0, 1))

See Also

boxcar

Author(s)

Sylvain Pelissier, sylvain.pelissier@gmail.com .

Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com .

  • Maintainer: Geert van Boxtel
  • License: GPL-3
  • Last published: 2024-09-11