pei_tseng_notch function

Pei-Tseng notch filter

Pei-Tseng notch filter

Compute the transfer function coefficients of an IIR narrow-band notch filter.

pei_tseng_notch(w, bw)

Arguments

  • w: vector of critical frequencies of the filter. Must be between 0 and 1 where 1 is the Nyquist frequency.
  • bw: vector of bandwidths. Bw should be of the same length as w.

Returns

List of class Arma with list elements:

  • b: moving average (MA) polynomial coefficients
  • a: autoregressive (AR) polynomial coefficients

Details

The filter construction is based on an all-pass which performs a reversal of phase at the filter frequencies. Thus, the mean of the phase-distorted and the original signal has the respective frequencies removed.

Examples

## 50 Hz notch filter fs <- 256 nyq <- fs / 2 notch <- pei_tseng_notch(50 / nyq, 2 / nyq) freqz(notch, fs = fs)

References

Pei, Soo-Chang, and Tseng, Chien-Cheng "IIR Multiple Notch Filter Design Based on Allpass Filter"; 1996 IEEE Tencon, doi: tools:::Rd_expr_doi("10.1109/TENCON.1996.608814")

See Also

Arma, filter

Author(s)

Alexander Klein, alexander.klein@math.uni-giessen.de .

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