[−][src]Struct basic_dsp::conv_types::RealTimeLinearTableLookup
Allows to create a lookup table with linear interpolation between table points. This usually speeds up a convolution and sacrifices accuracy.
Implementations
impl<T> RealTimeLinearTableLookup<T> where
T: RealNumber, [src]
T: RealNumber,
pub fn table(&self) -> &[T][src]
Allows to inspect the generated lookup table
pub fn delta(&self) -> T[src]
Gets the delta value which determines the resolution
impl RealTimeLinearTableLookup<f32>[src]
pub fn from_raw_parts(
table: &[f32],
delta: f32,
is_symmetric: bool
) -> RealTimeLinearTableLookup<f32>[src]
table: &[f32],
delta: f32,
is_symmetric: bool
) -> RealTimeLinearTableLookup<f32>
Creates a lookup table by putting the pieces together.
pub fn from_conv_function(
other: &dyn RealImpulseResponse<f32>,
delta: f32,
len: usize
) -> RealTimeLinearTableLookup<f32>[src]
other: &dyn RealImpulseResponse<f32>,
delta: f32,
len: usize
) -> RealTimeLinearTableLookup<f32>
Creates a lookup table from another convolution function. The delta argument
can be used to balance performance vs. accuracy.
impl RealTimeLinearTableLookup<f64>[src]
pub fn from_raw_parts(
table: &[f64],
delta: f64,
is_symmetric: bool
) -> RealTimeLinearTableLookup<f64>[src]
table: &[f64],
delta: f64,
is_symmetric: bool
) -> RealTimeLinearTableLookup<f64>
Creates a lookup table by putting the pieces together.
pub fn from_conv_function(
other: &dyn RealImpulseResponse<f64>,
delta: f64,
len: usize
) -> RealTimeLinearTableLookup<f64>[src]
other: &dyn RealImpulseResponse<f64>,
delta: f64,
len: usize
) -> RealTimeLinearTableLookup<f64>
Creates a lookup table from another convolution function. The delta argument
can be used to balance performance vs. accuracy.
impl RealTimeLinearTableLookup<f32>[src]
pub fn to_complex(&self) -> ComplexTimeLinearTableLookup<f32>[src]
Convert the lookup table into complex number space
impl RealTimeLinearTableLookup<f64>[src]
pub fn to_complex(&self) -> ComplexTimeLinearTableLookup<f64>[src]
Convert the lookup table into complex number space
impl RealTimeLinearTableLookup<f32>[src]
pub fn fft(self) -> RealFrequencyLinearTableLookup<f32>[src]
Convert the lookup table into a magnitude spectrum
impl RealTimeLinearTableLookup<f64>[src]
pub fn fft(self) -> RealFrequencyLinearTableLookup<f64>[src]
Convert the lookup table into a magnitude spectrum
Trait Implementations
impl RealImpulseResponse<f32> for RealTimeLinearTableLookup<f32>[src]
impl RealImpulseResponse<f64> for RealTimeLinearTableLookup<f64>[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for RealTimeLinearTableLookup<T> where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,
impl<T> Send for RealTimeLinearTableLookup<T>[src]
impl<T> Sync for RealTimeLinearTableLookup<T>[src]
impl<T> Unpin for RealTimeLinearTableLookup<T> where
T: Unpin, [src]
T: Unpin,
impl<T> UnwindSafe for RealTimeLinearTableLookup<T> where
T: UnwindSafe, [src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,