[][src]Struct tdpsola::TdpsolaAnalysis

pub struct TdpsolaAnalysis { /* fields omitted */ }

Implementations

impl TdpsolaAnalysis[src]

pub fn new<W: AlternatingWindow>(window: &W) -> Self[src]

Create a new TdpsolaAnalysis. The window is used to initialise the TdpsolaAnalysis and is assumed to be the first window used when calling the push_sample method.

pub fn push_sample<W: AlternatingWindow>(&mut self, sample: f32, window: &mut W)[src]

Analyse a new sample.

Different structs, even of different types can be used in subsequent calls to this method. It is assumed that the window changes fluidly between subsequent calls to push_sample.

In order to avoid edge effects, it is advised to add one window of pre-padding.

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.