nuttallwin {gsignal}R Documentation

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"))

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.

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.

Value

Nuttall-defined Blackman-Harris 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.

See Also

blackman, blackmanharris

Examples


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


[Package gsignal version 0.3-5 Index]