Learn R Programming

gsignal (version 0.3-1)

parzenwin: Parzen (de la Vall<U+00E9>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.

Value

Parzen window, returned as a vector.

Details

Parzen windows are piecewise-cubic approximations of Gaussian windows.

Examples

Run this code
# NOT RUN {
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