Skip to main content

LinearKalmanFilter

Struct LinearKalmanFilter 

Source
pub struct LinearKalmanFilter<const S: usize, const M: usize> {
    pub x: [f64; S],
    pub p: [[f64; S]; S],
    pub f: [[f64; S]; S],
    pub q: [[f64; S]; S],
    pub h: [[f64; S]; M],
    pub r: [[f64; M]; M],
}
Expand description

Generic N-dimensional Linear Kalman Filter using const-generics.

Fields§

§x: [f64; S]§p: [[f64; S]; S]§f: [[f64; S]; S]§q: [[f64; S]; S]§h: [[f64; S]; M]§r: [[f64; M]; M]

Implementations§

Source§

impl<const S: usize, const M: usize> LinearKalmanFilter<S, M>

Source

pub fn new( initial_x: [f64; S], initial_p: [[f64; S]; S], f: [[f64; S]; S], q: [[f64; S]; S], h: [[f64; S]; M], r: [[f64; M]; M], ) -> Result<Self, FilterError>

Source

pub fn predict(&mut self) -> Result<(), FilterError>

Trait Implementations§

Source§

impl<const S: usize, const M: usize> Clone for LinearKalmanFilter<S, M>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const S: usize, const M: usize> Debug for LinearKalmanFilter<S, M>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<const S: usize, const M: usize> Freeze for LinearKalmanFilter<S, M>
where [f64; S]: Freeze, [[f64; S]; S]: Freeze, [[f64; S]; M]: Freeze, [[f64; M]; M]: Freeze,

§

impl<const S: usize, const M: usize> RefUnwindSafe for LinearKalmanFilter<S, M>
where [f64; S]: RefUnwindSafe, [[f64; S]; S]: RefUnwindSafe, [[f64; S]; M]: RefUnwindSafe, [[f64; M]; M]: RefUnwindSafe,

§

impl<const S: usize, const M: usize> Send for LinearKalmanFilter<S, M>
where [f64; S]: Send, [[f64; S]; S]: Send, [[f64; S]; M]: Send, [[f64; M]; M]: Send,

§

impl<const S: usize, const M: usize> Sync for LinearKalmanFilter<S, M>
where [f64; S]: Sync, [[f64; S]; S]: Sync, [[f64; S]; M]: Sync, [[f64; M]; M]: Sync,

§

impl<const S: usize, const M: usize> Unpin for LinearKalmanFilter<S, M>
where [f64; S]: Unpin, [[f64; S]; S]: Unpin, [[f64; S]; M]: Unpin, [[f64; M]; M]: Unpin,

§

impl<const S: usize, const M: usize> UnsafeUnpin for LinearKalmanFilter<S, M>
where [f64; S]: UnsafeUnpin, [[f64; S]; S]: UnsafeUnpin, [[f64; S]; M]: UnsafeUnpin, [[f64; M]; M]: UnsafeUnpin,

§

impl<const S: usize, const M: usize> UnwindSafe for LinearKalmanFilter<S, M>
where [f64; S]: UnwindSafe, [[f64; S]; S]: UnwindSafe, [[f64; S]; M]: UnwindSafe, [[f64; M]; M]: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.