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

Holder of the biquad coefficients, utilizes normalized form

Fields

a1: Ta2: Tb0: Tb1: Tb2: T

Implementations

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().

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.