pub struct FilterBank { /* private fields */ }
Expand description
Filterbank object.
General-purpose spectral filterbank object.
Implementations§
Source§impl FilterBank
impl FilterBank
Sourcepub fn new(n_filters: usize, win_s: usize) -> Result<Self>
pub fn new(n_filters: usize, win_s: usize) -> Result<Self>
Create filterbank object.
n_filters
: Number of filters to createwin_s
: size of analysis buffer (and length of the FFT transform)
Allocates an empty matrix of length win_s / 2 + 1 and height n_filters
pub fn set_coeffs(&mut self, filters: FMat<'_, FMatVecs>)
pub fn get_coeffs(&mut self) -> FMat<'_, ()>
pub fn do_<'i, 'o, I, O>(&mut self, input: I, output: O) -> Status
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FilterBank
impl RefUnwindSafe for FilterBank
impl !Send for FilterBank
impl !Sync for FilterBank
impl Unpin for FilterBank
impl UnwindSafe for FilterBank
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more