pub struct Coefficients {
pub b0: f32,
pub b1: f32,
pub b2: f32,
pub a1: f32,
pub a2: f32,
}Expand description
Normalised coefficients (a0 = 1).
Fields§
§b0: f32Feed-forward.
b1: f32Feed-forward, one sample back.
b2: f32Feed-forward, two samples back.
a1: f32Feedback, one sample back.
a2: f32Feedback, two samples back.
Implementations§
Source§impl Coefficients
impl Coefficients
Sourcepub const IDENTITY: Coefficients
pub const IDENTITY: Coefficients
Unity passthrough.
Sourcepub fn design(kind: BiquadKind, rate: u32) -> Result<Self>
pub fn design(kind: BiquadKind, rate: u32) -> Result<Self>
Design kind for sample rate rate. Computed in f64 and rounded
to f32 once, so the design matches a double-precision reference
as closely as f32 allows. f0 must lie in (0, rate/2).
Trait Implementations§
Source§impl Clone for Coefficients
impl Clone for Coefficients
Source§fn clone(&self) -> Coefficients
fn clone(&self) -> Coefficients
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Coefficients
Source§impl Debug for Coefficients
impl Debug for Coefficients
Source§impl PartialEq for Coefficients
impl PartialEq for Coefficients
impl StructuralPartialEq for Coefficients
Auto Trait Implementations§
impl Freeze for Coefficients
impl RefUnwindSafe for Coefficients
impl Send for Coefficients
impl Sync for Coefficients
impl Unpin for Coefficients
impl UnsafeUnpin for Coefficients
impl UnwindSafe for Coefficients
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