firls | R Documentation |
Produce a linear phase filter such that the integral of the weighted mean squared error in the specified bands is minimized.
firls(n, f, a, w = rep(1L, length(a)/2))
n |
filter order (1 less than the length of the filter). Must be even. If odd, it is incremented by one. |
f |
vector of frequency points in the range from 0 to 1, where 1 corresponds to the Nyquist frequency. Each band is specified by two frequencies, so the vector must have an even length. . |
a |
vector of the same length as |
w |
weighting function that contains one value for each band that
weights the mean squared error in that band. |
The FIR filter coefficients, a vector of length n + 1
, of
class Ma
.
Quentin Spencer, qspencer@ieee.org.
Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.
Ma
, filter
, fftfilt
,
fir1
freqz(firls(255, c(0, 0.25, 0.3, 1), c(1, 1, 0, 0)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.