Struct signalo_filters::filter::observe::Kalman [−][src]
pub struct Kalman<T> { /* fields omitted */ }
A 1-dimensional Kalman filter.
Methods
impl<T> Kalman<T> where
T: Zero,
[src]
impl<T> Kalman<T> where
T: Zero,
pub fn new(r: T, q: T, a: T, b: T, c: T) -> Self
[src]
pub fn new(r: T, q: T, a: T, b: T, c: T) -> Self
Creates a new Kalman
filter with given r
, q
, a
, b
, and c
coefficients.
Coefficients:
r
: Process noise covarianceq
: Measurement noise covariancea
: State transitionb
: Control transitionc
: Measurement
Trait Implementations
impl<T: Clone> Clone for Kalman<T>
[src]
impl<T: Clone> Clone for Kalman<T>
fn clone(&self) -> Kalman<T>
[src]
fn clone(&self) -> Kalman<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 Kalman<T>
[src]
impl<T: Debug> Debug for Kalman<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> Default for Kalman<T> where
T: Zero + One,
[src]
impl<T> Default for Kalman<T> where
T: Zero + One,
impl<T> Stateful for Kalman<T>
[src]
impl<T> Stateful for Kalman<T>
type State = State<T>
The filter's internal state.
impl<T> StatefulUnsafe for Kalman<T>
[src]
impl<T> StatefulUnsafe for Kalman<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 Kalman<T> where
T: Zero,
[src]
impl<T> InitialState<()> for Kalman<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 Kalman<T> where
T: Zero,
[src]
impl<T> Resettable for Kalman<T> where
T: Zero,
impl<T> Filter<T> for Kalman<T> where
T: Copy + Num,
[src]
impl<T> Filter<T> for Kalman<T> where
T: Copy + Num,
type Output = T
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<T> Filter<(T, T)> for Kalman<T> where
T: Copy + Num,
[src]
impl<T> Filter<(T, T)> for Kalman<T> where
T: Copy + Num,