pub struct RealFrequencyLinearTableLookup<T>where
T: RealNumber,{ /* private fields */ }
Expand description
Allows to create a lookup table with linear interpolation between table points. This usually speeds up a convolution and sacrifices accuracy.
Implementations
sourceimpl<T> RealFrequencyLinearTableLookup<T>where
T: RealNumber,
impl<T> RealFrequencyLinearTableLookup<T>where
T: RealNumber,
sourceimpl RealFrequencyLinearTableLookup<f32>
impl RealFrequencyLinearTableLookup<f32>
sourcepub fn from_raw_parts(
table: &[f32],
delta: f32,
is_symmetric: bool
) -> RealFrequencyLinearTableLookup<f32>
pub fn from_raw_parts(
table: &[f32],
delta: f32,
is_symmetric: bool
) -> RealFrequencyLinearTableLookup<f32>
Creates a lookup table by putting the pieces together.
sourcepub fn from_conv_function(
other: &dyn RealFrequencyResponse<f32>,
delta: f32,
len: usize
) -> RealFrequencyLinearTableLookup<f32>
pub fn from_conv_function(
other: &dyn RealFrequencyResponse<f32>,
delta: f32,
len: usize
) -> RealFrequencyLinearTableLookup<f32>
Creates a lookup table from another convolution function. The delta
argument
can be used to balance performance vs. accuracy.
sourceimpl RealFrequencyLinearTableLookup<f64>
impl RealFrequencyLinearTableLookup<f64>
sourcepub fn from_raw_parts(
table: &[f64],
delta: f64,
is_symmetric: bool
) -> RealFrequencyLinearTableLookup<f64>
pub fn from_raw_parts(
table: &[f64],
delta: f64,
is_symmetric: bool
) -> RealFrequencyLinearTableLookup<f64>
Creates a lookup table by putting the pieces together.
sourcepub fn from_conv_function(
other: &dyn RealFrequencyResponse<f64>,
delta: f64,
len: usize
) -> RealFrequencyLinearTableLookup<f64>
pub fn from_conv_function(
other: &dyn RealFrequencyResponse<f64>,
delta: f64,
len: usize
) -> RealFrequencyLinearTableLookup<f64>
Creates a lookup table from another convolution function. The delta
argument
can be used to balance performance vs. accuracy.
sourceimpl RealFrequencyLinearTableLookup<f32>
impl RealFrequencyLinearTableLookup<f32>
sourcepub fn to_complex(&self) -> ComplexFrequencyLinearTableLookup<f32>
pub fn to_complex(&self) -> ComplexFrequencyLinearTableLookup<f32>
Convert the lookup table into complex number space
sourceimpl RealFrequencyLinearTableLookup<f64>
impl RealFrequencyLinearTableLookup<f64>
sourcepub fn to_complex(&self) -> ComplexFrequencyLinearTableLookup<f64>
pub fn to_complex(&self) -> ComplexFrequencyLinearTableLookup<f64>
Convert the lookup table into complex number space
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for RealFrequencyLinearTableLookup<T>where
T: RefUnwindSafe,
impl<T> Send for RealFrequencyLinearTableLookup<T>
impl<T> Sync for RealFrequencyLinearTableLookup<T>
impl<T> Unpin for RealFrequencyLinearTableLookup<T>where
T: Unpin,
impl<T> UnwindSafe for RealFrequencyLinearTableLookup<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more