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: Vector<R, SS, Owned<R, SS>>,
covariance: Matrix<R, SS, SS, Owned<R, SS, SS>>,
) -> Self
pub fn new( state: Vector<R, SS, Owned<R, SS>>, covariance: Matrix<R, SS, SS, Owned<R, SS, SS>>, ) -> Self
Create a new StateAndCovariance.
It is assumed that the covariance matrix is symmetric and positive semi-definite.
Sourcepub fn state_mut(&mut self) -> &mut Vector<R, SS, Owned<R, SS>>
pub fn state_mut(&mut self) -> &mut Vector<R, SS, Owned<R, SS>>
Get a mut reference to the state vector.
Sourcepub fn covariance(&self) -> &Matrix<R, SS, SS, Owned<R, SS, SS>>
pub fn covariance(&self) -> &Matrix<R, SS, SS, Owned<R, SS, SS>>
Get a reference to the covariance matrix.
Sourcepub fn covariance_mut(&mut self) -> &mut Matrix<R, SS, SS, Owned<R, SS, SS>>
pub fn covariance_mut(&mut self) -> &mut Matrix<R, SS, SS, Owned<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 duplicate 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> !UnsafeUnpin 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.