Struct basic_dsp_vector::conv_types::ComplexFrequencyLinearTableLookup [−][src]
pub struct ComplexFrequencyLinearTableLookup<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> ComplexFrequencyLinearTableLookup<T> where
T: RealNumber,
[src]
impl<T> ComplexFrequencyLinearTableLookup<T> where
T: RealNumber,
pub fn table(&self) -> &[Complex<T>]
[src]
pub fn table(&self) -> &[Complex<T>]
Allows to inspect the generated lookup table
pub fn delta(&self) -> T
[src]
pub fn delta(&self) -> T
Gets the delta value which determines the resolution
impl ComplexFrequencyLinearTableLookup<f32>
[src]
impl ComplexFrequencyLinearTableLookup<f32>
pub fn from_raw_parts(
table: &[Complex32],
delta: f32,
is_symmetric: bool
) -> Self
[src]
pub fn from_raw_parts(
table: &[Complex32],
delta: f32,
is_symmetric: bool
) -> Self
Creates a lookup table by putting the pieces together.
pub fn from_conv_function(
other: &ComplexFrequencyResponse<f32>,
delta: f32,
len: usize
) -> Self
[src]
pub fn from_conv_function(
other: &ComplexFrequencyResponse<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 ComplexFrequencyLinearTableLookup<f64>
[src]
impl ComplexFrequencyLinearTableLookup<f64>
pub fn from_raw_parts(
table: &[Complex64],
delta: f64,
is_symmetric: bool
) -> Self
[src]
pub fn from_raw_parts(
table: &[Complex64],
delta: f64,
is_symmetric: bool
) -> Self
Creates a lookup table by putting the pieces together.
pub fn from_conv_function(
other: &ComplexFrequencyResponse<f64>,
delta: f64,
len: usize
) -> Self
[src]
pub fn from_conv_function(
other: &ComplexFrequencyResponse<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 ComplexFrequencyLinearTableLookup<f32>
[src]
impl ComplexFrequencyLinearTableLookup<f32>
pub fn to_real(self) -> RealFrequencyLinearTableLookup<f32>
[src]
pub fn to_real(self) -> RealFrequencyLinearTableLookup<f32>
Convert the lookup table into real number space
impl ComplexFrequencyLinearTableLookup<f64>
[src]
impl ComplexFrequencyLinearTableLookup<f64>
pub fn to_real(self) -> RealFrequencyLinearTableLookup<f64>
[src]
pub fn to_real(self) -> RealFrequencyLinearTableLookup<f64>
Convert the lookup table into real number space
impl ComplexFrequencyLinearTableLookup<f32>
[src]
impl ComplexFrequencyLinearTableLookup<f32>
pub fn ifft(self) -> ComplexTimeLinearTableLookup<f32>
[src]
pub fn ifft(self) -> ComplexTimeLinearTableLookup<f32>
Convert the lookup table into time domain
impl ComplexFrequencyLinearTableLookup<f64>
[src]
impl ComplexFrequencyLinearTableLookup<f64>
pub fn ifft(self) -> ComplexTimeLinearTableLookup<f64>
[src]
pub fn ifft(self) -> ComplexTimeLinearTableLookup<f64>
Convert the lookup table into time domain
Trait Implementations
impl ComplexFrequencyResponse<f32> for ComplexFrequencyLinearTableLookup<f32>
[src]
impl ComplexFrequencyResponse<f32> for ComplexFrequencyLinearTableLookup<f32>
fn is_symmetric(&self) -> bool
[src]
fn is_symmetric(&self) -> bool
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) -> Complex32
[src]
fn calc(&self, x: f32) -> Complex32
Calculates the convolution for a data point
impl ComplexFrequencyResponse<f64> for ComplexFrequencyLinearTableLookup<f64>
[src]
impl ComplexFrequencyResponse<f64> for ComplexFrequencyLinearTableLookup<f64>
Auto Trait Implementations
impl<T> Send for ComplexFrequencyLinearTableLookup<T>
impl<T> Send for ComplexFrequencyLinearTableLookup<T>
impl<T> Sync for ComplexFrequencyLinearTableLookup<T>
impl<T> Sync for ComplexFrequencyLinearTableLookup<T>