blackmannuttall function

Blackman-Nuttall window

Blackman-Nuttall window

Return the filter coefficients of a Blackman-Nuttal window.

blackmannuttall(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.

Returns

Blackman-Nuttall window, returned as a vector.

Details

The Blackman-Nuttall window is a member of the family of cosine sum windows.

Examples

b <- blackmannuttall(64) plot (b, type = "l", xlab = "Samples", ylab =" Amplitude") bs = blackmannuttall(64,'symmetric') bp = blackmannuttall(63,'periodic') plot (bs, type = "l", xlab = "Samples", ylab =" Amplitude") lines(bp, col="red")

Author(s)

Muthiah Annamalai, muthiah.annamalai@uta.edu .

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

  • Maintainer: Geert van Boxtel
  • License: GPL-3
  • Last published: 2024-09-11