pub struct DST1Naive<T> { /* fields omitted */ }
Naive O(n^2 ) DST Type 1 implementation
This implementation is primarily used to test other DST1 algorithms.
use rustdct::DST1;
use rustdct::algorithm::DST1Naive;
let len = 23;
let mut input: Vec<f32> = vec![0f32; len];
let mut output: Vec<f32> = vec![0f32; len];
let dst = DST1Naive::new(len);
dst.process_dst1(&mut input, &mut output);
Creates a new DST1 context that will process signals of length len
Computes the DST Type 1 on the input
buffer and places the result in the output
buffer. Read more
The FFT size that this algorithm can process
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static