Expand description
Methods for designing FIR filters.
Modules
FIR filter design methods based on the Kaiser window method. The resulting filters have generalized linear phase.
Functions
Constructs a bandpass FIR filter with unit gain and cutoff frequencies
lower_cutoff
and higher_cutoff
(in cycles/sample) using the specified window.
The length of the filter equals the length of window
.
The filter taps are constructed internally as f64
and then casted to the generic type T
using num_traits::FromPrimitive::from_f64()
.
Constructs a highpass FIR filter with unit gain and cutoff frequency cutoff
(in cycles/sample)
using the specified window. The length of the filter equals the length of window
.
Note that window.len()
must be odd.
The filter taps are constructed internally as f64
and then casted to the generic type T
using num_traits::FromPrimitive::from_f64()
.
Constructs a lowpass FIR filter with unit gain and cutoff frequency cutoff
(in cycles/sample)
using the specified window. The length of the filter equals the length of window
.
The filter taps are constructed internally as f64
and then casted to the generic type T
using num_traits::FromPrimitive::from_f64()
.
Constructs a root raised cosine filter with roll-off factor roll_off
, truncated to
span
symbols. Each symbol is represented using sps
samples. span * sps
must be
even. The returned filter has a length span * sps + 1
.
The filter taps are constructed internally as f64
and then casted to the generic type T
using num_traits::FromPrimitive::from_f64()
.