| fir1 {ravetools} | R Documentation | 
Window-based FIR filter design
Description
Generate a fir1 filter that is checked against Matlab
fir1 function.
Usage
fir1(
  n,
  w,
  type = c("low", "high", "stop", "pass", "DC-0", "DC-1"),
  window = hamming,
  scale = TRUE,
  hilbert = FALSE
)
Arguments
n | 
 filter order  | 
w | 
 band edges, non-decreasing vector in the range 0 to 1, where 1 is
the   | 
type | 
 type of the filter, one of   | 
window | 
 smoothing window function or a numerical vector. The filter is
the same shape as the smoothing window. When   | 
scale | 
 whether to scale the filter; default is true  | 
hilbert | 
 whether to use 'Hilbert' transformer; default is false  | 
Value
The FIR filter coefficients with class 'Arma'.
The moving average coefficient is a vector of length n+1.