Function Index
FilterLength
FilterLength[
f
p
,
f
s
,
A
p
,
A
s
]
returns the length of a FIR filter given stopband and passband edge frequencies, f
p
and f
s
, respectively, and attenuation factors in each of the two bands, A
p
and A
s
, respectively.
Arguments f
p
and f
s
accept units of normalized Hz (i.e., 0≤f
p
,f
s
≤0.5). Attenuation factors are specified as decimal fractions [
Her73
].
See also User's Guide
9.3
.
Example
This loads the package.
In[1]:=
This estimates the length of a FIR with passband edge frequency f
p
=0.2 Hz, stopband edge frequency f
s
=0.25 Hz, and peak passband and stopband ripples of 0.03 and 0.06, respectively.
In[2]:=
Out[2]=
© 2008 Wolfram Research, Inc.
•
Terms of Use
•
Privacy Policy
Sign up for our newsletter: