Learn R Programming

gsignal (version 0.3-7)

parzenwin: Parzen (de la Vallée Poussin) window

Description

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

Usage

parzenwin(n)

Value

Parzen window, returned as a vector.

Arguments

n

Window length, specified as a positive integer.

Author

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

Details

Parzen windows are piecewise-cubic approximations of Gaussian windows.

Examples

Run this code

p <- parzenwin(64)
g <- gausswin(64)
plot (p, type = "l", xlab = "Samples", ylab =" Amplitude", ylim = c(0, 1))
lines(g, col = "red")

Run the code above in your browser using DataLab