Struct biquad::coefficients::Coefficients[][src]

pub struct Coefficients<T> {
    pub a1: T,
    pub a2: T,
    pub b0: T,
    pub b1: T,
    pub b2: T,
}

Holder of the biquad coefficients, utilizes normalized form

Fields

a1: Ta2: Tb0: Tb1: Tb2: T

Implementations

impl Coefficients<f32>[src]

pub fn from_params(
    filter: Type<f32>,
    fs: Hertz<f32>,
    f0: Hertz<f32>,
    q_value: f32
) -> Result<Coefficients<f32>, Errors>
[src]

Creates coefficients based on the biquad filter type, sampling and cutoff frequency, and Q value. Note that the cutoff frequency must be smaller than half the sampling frequency and that Q may not be negative, this will result in an Err().

impl Coefficients<f64>[src]

pub fn from_params(
    filter: Type<f64>,
    fs: Hertz<f64>,
    f0: Hertz<f64>,
    q_value: f64
) -> Result<Coefficients<f64>, Errors>
[src]

Creates coefficients based on the biquad filter type, sampling and cutoff frequency, and Q value. Note that the cutoff frequency must be smaller than half the sampling frequency and that Q may not be negative, this will result in an Err().

Trait Implementations

impl<T: Clone> Clone for Coefficients<T>[src]

impl<T: Copy> Copy for Coefficients<T>[src]

impl<T: Debug> Debug for Coefficients<T>[src]

Auto Trait Implementations

impl<T> Send for Coefficients<T> where
    T: Send

impl<T> Sync for Coefficients<T> where
    T: Sync

impl<T> Unpin for Coefficients<T> where
    T: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.