Struct signalo_filters::filter::classify::Peaks [−][src]
pub struct Peaks<T, U> { /* fields omitted */ }
A peak detection filter.
Methods
impl<T, U> Peaks<T, U> where
U: Clone,
[src]
impl<T, U> Peaks<T, U> where
U: Clone,
pub fn new(outputs: [U; 3]) -> Self
[src]
pub fn new(outputs: [U; 3]) -> Self
Creates a new Peaks
filter with given threshold
and outputs
([max, none, min]
).
Trait Implementations
impl<T: Clone, U: Clone> Clone for Peaks<T, U>
[src]
impl<T: Clone, U: Clone> Clone for Peaks<T, U>
fn clone(&self) -> Peaks<T, U>
[src]
fn clone(&self) -> Peaks<T, U>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: Debug, U: Debug> Debug for Peaks<T, U>
[src]
impl<T: Debug, U: Debug> Debug for Peaks<T, U>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T, U> Stateful for Peaks<T, U>
[src]
impl<T, U> Stateful for Peaks<T, U>
type State = State<T>
The filter's internal state.
impl<T, U> StatefulUnsafe for Peaks<T, U>
[src]
impl<T, U> StatefulUnsafe for Peaks<T, U>
unsafe fn state(&self) -> &Self::State
[src]
unsafe fn state(&self) -> &Self::State
Returns a mutable reference to the internal state of the filter.
unsafe fn state_mut(&mut self) -> &mut Self::State
[src]
unsafe fn state_mut(&mut self) -> &mut Self::State
Returns a mutable reference to the internal state of the filter.
impl<T, U> InitialState<()> for Peaks<T, U>
[src]
impl<T, U> InitialState<()> for Peaks<T, U>
fn initial_state(_: ()) -> Self::State
[src]
fn initial_state(_: ()) -> Self::State
Returns the filter's initial state for a given parameter.
impl<T, U> Resettable for Peaks<T, U>
[src]
impl<T, U> Resettable for Peaks<T, U>
impl<T, U> Filter<T> for Peaks<T, U> where
T: Clone + PartialOrd<T>,
U: Clone,
[src]
impl<T, U> Filter<T> for Peaks<T, U> where
T: Clone + PartialOrd<T>,
U: Clone,
type Output = U
The filter's output type.
fn filter(&mut self, input: T) -> Self::Output
[src]
fn filter(&mut self, input: T) -> Self::Output
Processes the input value, returning a corresponding output.
impl<U> Filter<Slope> for Peaks<Slope, U> where
U: Clone,
[src]
impl<U> Filter<Slope> for Peaks<Slope, U> where
U: Clone,