Struct adskalman::StateAndCovariance
source · pub struct StateAndCovariance<R, SS>{ /* private fields */ }
Expand description
State and covariance pair for a given estimate
Implementations§
source§impl<R, SS> StateAndCovariance<R, SS>
impl<R, SS> StateAndCovariance<R, SS>
sourcepub fn new(state: OVector<R, SS>, covariance: OMatrix<R, SS, SS>) -> Self
pub fn new(state: OVector<R, SS>, covariance: OMatrix<R, SS, SS>) -> Self
Create a new StateAndCovariance
.
It is assumed that the covariance matrix is symmetric and positive semi-definite.
sourcepub fn covariance(&self) -> &OMatrix<R, SS, SS>
pub fn covariance(&self) -> &OMatrix<R, SS, SS>
Get a reference to the covariance matrix.
sourcepub fn covariance_mut(&mut self) -> &mut OMatrix<R, SS, SS>
pub fn covariance_mut(&mut self) -> &mut OMatrix<R, SS, SS>
Get a mutable reference to the covariance matrix.
Trait Implementations§
source§impl<R, SS> Clone for StateAndCovariance<R, SS>
impl<R, SS> Clone for StateAndCovariance<R, SS>
source§fn clone(&self) -> StateAndCovariance<R, SS>
fn clone(&self) -> StateAndCovariance<R, SS>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<R, SS> !Freeze for StateAndCovariance<R, SS>
impl<R, SS> !RefUnwindSafe for StateAndCovariance<R, SS>
impl<R, SS> !Send for StateAndCovariance<R, SS>
impl<R, SS> !Sync for StateAndCovariance<R, SS>
impl<R, SS> !Unpin for StateAndCovariance<R, SS>
impl<R, SS> !UnwindSafe for StateAndCovariance<R, SS>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.