notch                package:RTisean                R Documentation

_N_o_t_c_h _f_i_l_t_e_r

_D_e_s_c_r_i_p_t_i_o_n:

     Notch filter in the time domain.

_U_s_a_g_e:

     notch(series, X, f = 1, w, l, x = 0, c = 1)

_A_r_g_u_m_e_n_t_s:

  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. 

_V_a_l_u_e:

     A vector consisting of the filtered time series.

_E_x_a_m_p_l_e_s:

     ## 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)

