Struct static_fir::FirFilter
[−]
[src]
pub struct FirFilter<C: FirCoefs> { /* fields omitted */ }
A FIR filter for convolving with a series of samples.
Methods
impl<C: FirCoefs> FirFilter<C>
[src]
fn new() -> FirFilter<C>
[src]
Create a new FirFilter
with empty history.
fn feed(&mut self, sample: C::Sample) -> C::Sample
[src]
Add a sample to the current history and calculate the convolution.
fn history<'a>(&'a self) -> impl Iterator<Item = &'a C::Sample>
[src]
Create an iterator over the history of stored samples, with the oldest sample as the first item yielded and the newest as the last.
fn history_unordered<'a>(&'a self) -> impl Iterator<Item = &'a C::Sample>
[src]
Create an iterator over the history of stored samples, where the samples are yielded in the order they're stored in the underlying ring buffer.
This may be more efficient than history
if the order of the samples is
insignificant.