pub struct Dst5Naive<T> { /* private fields */ }
Expand description

Naive O(n^2 ) DST Type 5 implementation

This implementation is primarily used to test other DST5 algorithms.

// Computes a naive DST5 of size 23
use rustdct::Dst5;
use rustdct::algorithm::Dst5Naive;

let len = 23;
let mut buffer = vec![0f32; len];

let dst = Dst5Naive::new(len);
dst.process_dst5(&mut buffer);

Implementations

Creates a new DST5 context that will process signals of length len

Trait Implementations

Computes the DST Type 5 on the provided buffer, in-place. Uses the provided scratch buffer as scratch space. Read more
Computes the DST Type 5 on the provided buffer, in-place. Read more
The FFT size that this algorithm can process

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.