pub struct Kernel { /* private fields */ }Expand description
The tap bank at one lattice ratio, for a source at a rate of its own.
The taps are the measured ones where the ratio is the measured ratio, whatever
pair of rates spells it, and the same shape at that ratio’s own [cutoff]
otherwise. Build one per resampling run: a derived bank is computed on
construction, not per field.
Implementations§
Source§impl Kernel
impl Kernel
Sourcepub fn new(num: u32, den: u32) -> Kernel
pub fn new(num: u32, den: u32) -> Kernel
The kernel for a lattice of num source samples per den fields — a source
rate and a target rate, in that order, or any ratio equal to theirs.
Sourcepub fn accumulate(&self, source: &[i16], field: usize) -> f64
pub fn accumulate(&self, source: &[i16], field: usize) -> f64
Sum field f’s tap products in f64; samples outside source are zero.
Auto Trait Implementations§
impl Freeze for Kernel
impl RefUnwindSafe for Kernel
impl Send for Kernel
impl Sync for Kernel
impl Unpin for Kernel
impl UnsafeUnpin for Kernel
impl UnwindSafe for Kernel
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