Learn R Programming

gsignal (version 0.3-7)

nuttallwin: Nuttall-defined minimum 4-term Blackman-Harris window

Description

Return the filter coefficients of a Blackman-Harris window defined by Nuttall of length n.

Usage

nuttallwin(n, method = c("symmetric", "periodic"))

Value

Nuttall-defined Blackman-Harris window, returned as a vector.

Arguments

n

Window length, specified as a positive integer.

method

Character string. Window sampling method, specified as:

"symmetric"

(Default). Use this option when using windows for filter design.

"periodic"

This option is useful for spectral analysis because it enables a windowed signal to have the perfect periodic extension implicit in the discrete Fourier transform. When periodic is specified, the function computes a window of length n + 1 and returns the first n points.

Author

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

Details

The window is minimum in the sense that its maximum sidelobes are minimized. The coefficients for this window differ from the Blackman-Harris window coefficients computed with blackmanharris and produce slightly lower sidelobes.

See Also

blackman, blackmanharris

Examples

Run this code

n <- nuttallwin(64)
plot (n, type = "l", xlab = "Samples", ylab =" Amplitude")

Run the code above in your browser using DataLab