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]
impl Peak<PositiveHalfWave>
[src]
fn positive_half_wave() -> Peak<PositiveHalfWave>
A positive half-wave peak rectifier.
impl Peak<NegativeHalfWave>
[src]
fn negative_half_wave() -> Peak<NegativeHalfWave>
A negative half-wave peak rectifier.
impl<R> Peak<R>
[src]
Trait Implementations
impl<F, R> Mode<F> for Peak<R> where
R: Rectifier<F>,
F: Frame,
[src]
R: Rectifier<F>,
F: Frame,
fn next_frame(&mut self, frame: F) -> F
Update state that is unique to the Mode.
impl<R: Copy> Copy for Peak<R>
[src]
impl<R: Clone> Clone for Peak<R>
[src]
fn clone(&self) -> Peak<R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more