pub struct BiquadCoeffs {
pub b0: f32,
pub b1: f32,
pub b2: f32,
pub a1: f32,
pub a2: f32,
}Expand description
Normalized biquad coefficients (transfer function with a0 == 1).
y[n] = b0*x[n] + b1*x[n-1] + b2*x[n-2] - a1*y[n-1] - a2*y[n-2]
Fields§
§b0: f32§b1: f32§b2: f32§a1: f32§a2: f32Implementations§
Source§impl BiquadCoeffs
impl BiquadCoeffs
Sourcepub const fn from_etalon(c: BiquadCoeffs) -> Self
pub const fn from_etalon(c: BiquadCoeffs) -> Self
Convert from f64 [etalon_signal::filter::BiquadCoeffs].
Trait Implementations§
Source§impl Clone for BiquadCoeffs
impl Clone for BiquadCoeffs
impl Copy for BiquadCoeffs
Source§impl Debug for BiquadCoeffs
impl Debug for BiquadCoeffs
Source§impl PartialEq for BiquadCoeffs
impl PartialEq for BiquadCoeffs
impl StructuralPartialEq for BiquadCoeffs
Auto Trait Implementations§
impl Freeze for BiquadCoeffs
impl RefUnwindSafe for BiquadCoeffs
impl Send for BiquadCoeffs
impl Sync for BiquadCoeffs
impl Unpin for BiquadCoeffs
impl UnsafeUnpin for BiquadCoeffs
impl UnwindSafe for BiquadCoeffs
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