notch {RTisean} | R Documentation |
Notch filter in the time domain.
notch(series, X, f = 1, w, l, x = 0, c = 1)
series |
a matrix or a vector. |
X |
frequency to be cancelled. |
f |
sampling rate of data. |
w |
width of filter. |
l |
number of values to be read. |
x |
number of values to be skipped. |
c |
column to be read. |
A vector consisting of the filtered time series.
## Not run: numdata <- 500 dat <- cos(1:numdata/25)+rnorm(numdata,0,0.1) plot(dat,xlab="Time",t="l",ylab="Cos Data") filteredat <- notch(dat,X=100) points(filteredat,col=2,t="l") dat <- lynx plot(log(dat),ylab="Lynx data") filteredat <- log(notch(dat,X=0.5,w=1)) filteredat <- ts(filteredat, start=1821, end=1934) points(filteredat ,col=2,t="l") ## End(Not run)