[][src]Struct basic_dsp::conv_types::RealTimeLinearTableLookup

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.

Implementations

impl<T> RealTimeLinearTableLookup<T> where
    T: RealNumber
[src]

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]

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]

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]

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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.