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

View source: R/parzenwin.R

parzenwinR Documentation

Parzen (de la Vallée Poussin) window

Description

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

Usage

parzenwin(n)

Arguments

n

Window length, specified as a positive integer.

Details

Parzen windows are piecewise-cubic approximations of Gaussian windows.

Value

Parzen window, returned as a vector.

Author(s)

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

Examples


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


gsignal documentation built on Sept. 12, 2024, 6:27 a.m.