[][src]Struct rustdct::algorithm::DST1Naive

pub struct DST1Naive<T> { /* fields omitted */ }

Naive O(n^2 ) DST Type 1 implementation

This implementation is primarily used to test other DST1 algorithms.

// Computes a naive DST1 of size 23
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);

Methods

impl<T: DCTnum> DST1Naive<T>
[src]

pub fn new(len: usize) -> Self
[src]

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

Trait Implementations

impl<T: DCTnum> DST1<T> for DST1Naive<T>
[src]

impl<T> Length for DST1Naive<T>
[src]

Auto Trait Implementations

impl<T> Send for DST1Naive<T> where
    T: Send

impl<T> Sync for DST1Naive<T> where
    T: Sync

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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