pub struct DirectFormIIState<Sample: Float> { /* private fields */ }Expand description
State for applying a second order section to a sample using Direct Form II
Difference equation:
ⓘ
v[n] = x[n] - (a1/a0)*v[n-1] - (a2/a0)*v[n-2]
y(n) = (b0/a0)*v[n] + (b1/a0)*v[n-1] + (b2/a0)*v[n-2]Trait Implementations§
Source§impl<Sample: Float> FilterState for DirectFormIIState<Sample>
impl<Sample: Float> FilterState for DirectFormIIState<Sample>
Auto Trait Implementations§
impl<Sample> Freeze for DirectFormIIState<Sample>where
Sample: Freeze,
impl<Sample> RefUnwindSafe for DirectFormIIState<Sample>where
Sample: RefUnwindSafe,
impl<Sample> Send for DirectFormIIState<Sample>where
Sample: Send,
impl<Sample> Sync for DirectFormIIState<Sample>where
Sample: Sync,
impl<Sample> Unpin for DirectFormIIState<Sample>where
Sample: Unpin,
impl<Sample> UnwindSafe for DirectFormIIState<Sample>where
Sample: UnwindSafe,
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