Struct basic_dsp_vector::conv_types::RealTimeLinearTableLookup
[−]
[src]
pub struct RealTimeLinearTableLookup<T> where
T: RealNumber, { /* fields omitted */ }
Allows to create a lookup table with linear interpolation between table points. This usually speeds up a convolution and sacrifices accuracy.
Methods
impl<T> RealTimeLinearTableLookup<T> where
T: RealNumber,
[src]
T: RealNumber,
fn table(&self) -> &[T]
[src]
Allows to inspect the generated lookup table
fn delta(&self) -> T
[src]
Gets the delta value which determines the resolution
impl RealTimeLinearTableLookup<f32>
[src]
fn from_raw_parts(table: &[f32], delta: f32, is_symmetric: bool) -> Self
[src]
Creates a lookup table by putting the pieces together.
fn from_conv_function(
other: &RealImpulseResponse<f32>,
delta: f32,
len: usize
) -> Self
[src]
other: &RealImpulseResponse<f32>,
delta: f32,
len: usize
) -> Self
Creates a lookup table from another convolution function. The delta
argument
can be used to balance performance vs. accuracy.
impl RealTimeLinearTableLookup<f64>
[src]
fn from_raw_parts(table: &[f64], delta: f64, is_symmetric: bool) -> Self
[src]
Creates a lookup table by putting the pieces together.
fn from_conv_function(
other: &RealImpulseResponse<f64>,
delta: f64,
len: usize
) -> Self
[src]
other: &RealImpulseResponse<f64>,
delta: f64,
len: usize
) -> Self
Creates a lookup table from another convolution function. The delta
argument
can be used to balance performance vs. accuracy.
impl RealTimeLinearTableLookup<f32>
[src]
fn to_complex(&self) -> ComplexTimeLinearTableLookup<f32>
[src]
Convert the lookup table into complex number space
impl RealTimeLinearTableLookup<f64>
[src]
fn to_complex(&self) -> ComplexTimeLinearTableLookup<f64>
[src]
Convert the lookup table into complex number space
impl RealTimeLinearTableLookup<f32>
[src]
fn fft(self) -> RealFrequencyLinearTableLookup<f32>
[src]
Convert the lookup table into a magnitude spectrum
impl RealTimeLinearTableLookup<f64>
[src]
fn fft(self) -> RealFrequencyLinearTableLookup<f64>
[src]
Convert the lookup table into a magnitude spectrum
Trait Implementations
impl RealImpulseResponse<f32> for RealTimeLinearTableLookup<f32>
[src]
fn is_symmetric(&self) -> bool
[src]
Indicates whether this function is symmetric around 0 or not. Symmetry is defined as self.calc(x) == self.calc(-x)
. Read more
fn calc(&self, x: f32) -> f32
[src]
Calculates the convolution for a data point