Struct envelope_detector::peak::Peak [] [src]

pub struct Peak<R = FullWave> { /* fields omitted */ }

A peak rectifier, generic over FullWave, PositiveHalfWave and NegativeHalfWave rectification.

It produces a peak-following envelope when rectify is called over a signal of samples.

Methods

impl Peak<FullWave>
[src]

A full-wave peak rectifier.

impl Peak<PositiveHalfWave>
[src]

A positive half-wave peak rectifier.

impl Peak<NegativeHalfWave>
[src]

A negative half-wave peak rectifier.

impl<R> Peak<R>
[src]

Return the rectified sample.

Trait Implementations

impl<F, R> Mode<F> for Peak<R> where
    R: Rectifier<F>,
    F: Frame
[src]

Update state that is unique to the Mode.

impl<R: Copy> Copy for Peak<R>
[src]

impl<R: Clone> Clone for Peak<R>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<R: Debug> Debug for Peak<R>
[src]

Formats the value using the given formatter.

impl<R: PartialEq> PartialEq for Peak<R>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.