pub struct ComplexFrequencyLinearTableLookup<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§
source§impl<T> ComplexFrequencyLinearTableLookup<T>where
T: RealNumber,
impl<T> ComplexFrequencyLinearTableLookup<T>where
T: RealNumber,
source§impl ComplexFrequencyLinearTableLookup<f32>
impl ComplexFrequencyLinearTableLookup<f32>
sourcepub fn from_raw_parts(
table: &[Complex<f32>],
delta: f32,
is_symmetric: bool
) -> ComplexFrequencyLinearTableLookup<f32>
pub fn from_raw_parts( table: &[Complex<f32>], delta: f32, is_symmetric: bool ) -> ComplexFrequencyLinearTableLookup<f32>
Creates a lookup table by putting the pieces together.
sourcepub fn from_conv_function(
other: &dyn ComplexFrequencyResponse<f32>,
delta: f32,
len: usize
) -> ComplexFrequencyLinearTableLookup<f32>
pub fn from_conv_function( other: &dyn ComplexFrequencyResponse<f32>, delta: f32, len: usize ) -> ComplexFrequencyLinearTableLookup<f32>
Creates a lookup table from another convolution function. The delta
argument
can be used to balance performance vs. accuracy.
source§impl ComplexFrequencyLinearTableLookup<f64>
impl ComplexFrequencyLinearTableLookup<f64>
sourcepub fn from_raw_parts(
table: &[Complex<f64>],
delta: f64,
is_symmetric: bool
) -> ComplexFrequencyLinearTableLookup<f64>
pub fn from_raw_parts( table: &[Complex<f64>], delta: f64, is_symmetric: bool ) -> ComplexFrequencyLinearTableLookup<f64>
Creates a lookup table by putting the pieces together.
sourcepub fn from_conv_function(
other: &dyn ComplexFrequencyResponse<f64>,
delta: f64,
len: usize
) -> ComplexFrequencyLinearTableLookup<f64>
pub fn from_conv_function( other: &dyn ComplexFrequencyResponse<f64>, delta: f64, len: usize ) -> ComplexFrequencyLinearTableLookup<f64>
Creates a lookup table from another convolution function. The delta
argument
can be used to balance performance vs. accuracy.
source§impl ComplexFrequencyLinearTableLookup<f32>
impl ComplexFrequencyLinearTableLookup<f32>
sourcepub fn to_real(&self) -> RealFrequencyLinearTableLookup<f32>
pub fn to_real(&self) -> RealFrequencyLinearTableLookup<f32>
Convert the lookup table into real number space
source§impl ComplexFrequencyLinearTableLookup<f64>
impl ComplexFrequencyLinearTableLookup<f64>
sourcepub fn to_real(&self) -> RealFrequencyLinearTableLookup<f64>
pub fn to_real(&self) -> RealFrequencyLinearTableLookup<f64>
Convert the lookup table into real number space
source§impl ComplexFrequencyLinearTableLookup<f32>
impl ComplexFrequencyLinearTableLookup<f32>
sourcepub fn ifft(self) -> ComplexTimeLinearTableLookup<f32>
pub fn ifft(self) -> ComplexTimeLinearTableLookup<f32>
Convert the lookup table into time domain
source§impl ComplexFrequencyLinearTableLookup<f64>
impl ComplexFrequencyLinearTableLookup<f64>
sourcepub fn ifft(self) -> ComplexTimeLinearTableLookup<f64>
pub fn ifft(self) -> ComplexTimeLinearTableLookup<f64>
Convert the lookup table into time domain
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ComplexFrequencyLinearTableLookup<T>where
T: Freeze,
impl<T> RefUnwindSafe for ComplexFrequencyLinearTableLookup<T>where
T: RefUnwindSafe,
impl<T> Send for ComplexFrequencyLinearTableLookup<T>
impl<T> Sync for ComplexFrequencyLinearTableLookup<T>
impl<T> Unpin for ComplexFrequencyLinearTableLookup<T>where
T: Unpin,
impl<T> UnwindSafe for ComplexFrequencyLinearTableLookup<T>where
T: UnwindSafe,
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