pub struct NonResamplingFirKernel<InputType, OutputType, TA, TT> where
    TA: TapsAccessor<TapType = TT>, 
{ /* private fields */ }
Expand description

A non-resampling FIR filter. Calling work() on this struct always produces exactly as many samples as it consumes.

Implementations of this core exist for the following combinations:

  • f32 samples, f32 taps.
  • Complex<f32> samples, f32 taps.

Example usage:

use futuredsp::UnaryKernel;
use futuredsp::fir::NonResamplingFirKernel;

let fir = NonResamplingFirKernel::<f32, f32, _, _>::new([1.0, 2.0, 3.0]);

let input = [1.0, 2.0, 3.0];
let mut output = [0.0];
fir.work(&input, &mut output);

Implementations

Create a new non-resampling FIR filter using the given taps.

Trait Implementations

Computes the kernel on the given input, outputting into the given output. For a UnaryKernel, kernels will not have internal memory - in particular, this means that a single instantiated kernel does not need to be reserved for a single stream of data. Read more

Computes the kernel on the given input, outputting into the given output. For a UnaryKernel, kernels will not have internal memory - in particular, this means that a single instantiated kernel does not need to be reserved for a single stream of data. Read more

Computes the kernel on the given input, outputting into the given output. For a UnaryKernel, kernels will not have internal memory - in particular, this means that a single instantiated kernel does not need to be reserved for a single stream of data. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.