#[repr(C)]pub struct BiquadCoeffs {
pub b0: f32,
pub b1: f32,
pub b2: f32,
pub a1: f32,
pub a2: f32,
}Expand description
Normalized biquad filter coefficients $H(z) = \frac{b_0 + b_1 z^{-1} + b_2 z^{-2}}{1 + a_1 z^{-1} + a_2 z^{-2}}$.
Fields§
§b0: f32Feed-forward coefficient for x[n].
b1: f32Feed-forward coefficient for x[n-1].
b2: f32Feed-forward coefficient for x[n-2].
a1: f32Feedback coefficient for y[n-1].
a2: f32Feedback coefficient for y[n-2].
Implementations§
Source§impl BiquadCoeffs
impl BiquadCoeffs
Sourcepub fn to_etalon(self) -> EtalonBiquadCoeffs
pub fn to_etalon(self) -> EtalonBiquadCoeffs
Convert to double-precision etalon_signal::filter::BiquadCoeffs.
Sourcepub fn from_etalon(c: EtalonBiquadCoeffs) -> Self
pub fn from_etalon(c: EtalonBiquadCoeffs) -> Self
Convert from double-precision 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 Default for BiquadCoeffs
impl Default 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§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.