View source: R/pei_tseng_notch.R
pei_tseng_notch | R Documentation |
Compute the transfer function coefficients of an IIR narrow-band notch filter.
pei_tseng_notch(w, bw)
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 |
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.
List of class Arma
with list elements:
moving average (MA) polynomial coefficients
autoregressive (AR) polynomial coefficients
Alexander Klein, alexander.klein@math.uni-giessen.de.
Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.
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")}
Arma
, filter
## 50 Hz notch filter
fs <- 256
nyq <- fs / 2
notch <- pei_tseng_notch(50 / nyq, 2 / nyq)
freqz(notch, fs = fs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.