Struct signalo_filters::filter::observe::AlphaBeta [−][src]
pub struct AlphaBeta<T> { /* fields omitted */ }
An Alpha-Beta filter.
Methods
impl<T> AlphaBeta<T> where
T: Zero,
[src]
impl<T> AlphaBeta<T> where
T: Zero,
pub fn new(alpha: T, beta: T) -> Self
[src]
pub fn new(alpha: T, beta: T) -> Self
Creates a new AlphaBeta
filter with given r
, q
, a
, b
, and c
coefficients.
Note: Values of alpha
and beta
typically are adjusted experimentally.
In general, larger alpha and beta gains tend to produce faster response
for tracking transient changes, while smaller alpha and beta gains reduce
the level of noise in the state estimates.
Coefficients:
alpha
: thealpha
coefficientbeta
: thebeta
coefficient
Trait Implementations
impl<T: Clone> Clone for AlphaBeta<T>
[src]
impl<T: Clone> Clone for AlphaBeta<T>
fn clone(&self) -> AlphaBeta<T>
[src]
fn clone(&self) -> AlphaBeta<T>
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> Debug for AlphaBeta<T>
[src]
impl<T: Debug> Debug for AlphaBeta<T>
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> Stateful for AlphaBeta<T>
[src]
impl<T> Stateful for AlphaBeta<T>
type State = State<T>
The filter's internal state.
impl<T> StatefulUnsafe for AlphaBeta<T>
[src]
impl<T> StatefulUnsafe for AlphaBeta<T>
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> InitialState<()> for AlphaBeta<T> where
T: Zero,
[src]
impl<T> InitialState<()> for AlphaBeta<T> where
T: Zero,
fn initial_state(_: ()) -> Self::State
[src]
fn initial_state(_: ()) -> Self::State
Returns the filter's initial state for a given parameter.
impl<T> Resettable for AlphaBeta<T> where
T: Zero,
[src]
impl<T> Resettable for AlphaBeta<T> where
T: Zero,
impl<T> Filter<T> for AlphaBeta<T> where
T: Copy + Num,
[src]
impl<T> Filter<T> for AlphaBeta<T> where
T: Copy + Num,