Struct biquad::coefficients::Coefficients [−][src]
pub struct Coefficients { pub a1: f32, pub a2: f32, pub b0: f32, pub b1: f32, pub b2: f32, }
Holder of the biquad coefficients, utilizes normalized form
Fields
a1: f32
a2: f32
b0: f32
b1: f32
b2: f32
Methods
impl Coefficients
[src]
impl Coefficients
pub fn new(
filter: Type,
fs: Hertz,
f0: Hertz,
q_value: f32
) -> Result<Coefficients, &'static str>
[src]
pub fn new(
filter: Type,
fs: Hertz,
f0: Hertz,
q_value: f32
) -> Result<Coefficients, &'static str>
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(&str)
.
Trait Implementations
impl Clone for Coefficients
[src]
impl Clone for Coefficients
fn clone(&self) -> Coefficients
[src]
fn clone(&self) -> Coefficients
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Coefficients
[src]
impl Copy for Coefficients
impl Debug for Coefficients
[src]
impl Debug for Coefficients
Auto Trait Implementations
impl Send for Coefficients
impl Send for Coefficients
impl Sync for Coefficients
impl Sync for Coefficients