pei_tseng_notch: Pei-Tseng notch filter

View source: R/pei_tseng_notch.R

pei_tseng_notchR Documentation

Pei-Tseng notch filter

Description

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

Usage

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.

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.

Value

List of class Arma with list elements:

b

moving average (MA) polynomial coefficients

a

autoregressive (AR) polynomial coefficients

Author(s)

Alexander Klein, alexander.klein@math.uni-giessen.de.
Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.

References

Pei, Soo-Chang, and Tseng, Chien-Cheng "IIR Multiple Notch Filter Design Based on Allpass Filter"; 1996 IEEE Tencon, doi: \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1109/TENCON.1996.608814")}

See Also

Arma, filter

Examples

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


gsignal documentation built on Sept. 12, 2024, 6:27 a.m.