Struct bayes_estimate::models::KalmanState
source · pub struct KalmanState<N: RealField, D: Dim>{
pub x: OVector<N, D>,
pub X: OMatrix<N, D, D>,
}
Expand description
Kalman state.
Linear representation as a state vector and the state covariance (symmetric positive semi-definite) matrix.
Fields§
§x: OVector<N, D>
State vector
X: OMatrix<N, D, D>
State covariance matrix (symmetric positive semi-definite)
Implementations§
source§impl<N: Copy + FromPrimitive + RealField, D: Dim> KalmanState<N, D>
impl<N: Copy + FromPrimitive + RealField, D: Dim> KalmanState<N, D>
pub fn try_from(state: KalmanState<N, D>) -> Result<Self, &'static str>
source§impl<N: Copy + FromPrimitive + RealField, D: Dim> KalmanState<N, D>
impl<N: Copy + FromPrimitive + RealField, D: Dim> KalmanState<N, D>
sourcepub fn kalman_state(UU: &Vec<OVector<N, D>>, kappa: N) -> KalmanState<N, D>
pub fn kalman_state(UU: &Vec<OVector<N, D>>, kappa: N) -> KalmanState<N, D>
Calculates the Kalman State from the ‘UU’ unscented duplex sigma points.
Trait Implementations§
source§impl<N: Clone + RealField, D: Clone + Dim> Clone for KalmanState<N, D>
impl<N: Clone + RealField, D: Clone + Dim> Clone for KalmanState<N, D>
source§fn clone(&self) -> KalmanState<N, D>
fn clone(&self) -> KalmanState<N, D>
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 moresource§impl<N: RealField, D: Dim> Estimator<N, D> for KalmanState<N, D>
impl<N: RealField, D: Dim> Estimator<N, D> for KalmanState<N, D>
source§impl<N: RealField, D: Dim, ZD: Dim> ExtendedLinearObserver<N, D, ZD> for KalmanState<N, D>
impl<N: RealField, D: Dim, ZD: Dim> ExtendedLinearObserver<N, D, ZD> for KalmanState<N, D>
source§fn observe_innovation(
&mut self,
s: &OVector<N, ZD>,
hx: &OMatrix<N, ZD, D>,
noise: &CorrelatedNoise<N, ZD>
) -> Result<(), &str>
fn observe_innovation( &mut self, s: &OVector<N, ZD>, hx: &OMatrix<N, ZD, D>, noise: &CorrelatedNoise<N, ZD> ) -> Result<(), &str>
Uses a non-linear state observation with linear estimation model and additive noise.
source§impl<N: RealField, D: Dim> ExtendedLinearPredictor<N, D> for KalmanState<N, D>
impl<N: RealField, D: Dim> ExtendedLinearPredictor<N, D> for KalmanState<N, D>
source§impl<N: Copy + FromPrimitive + RealField, D: Dim> From<KalmanState<N, D>> for UnscentedDuplexState<N, D>
impl<N: Copy + FromPrimitive + RealField, D: Dim> From<KalmanState<N, D>> for UnscentedDuplexState<N, D>
source§fn from(state: KalmanState<N, D>) -> Self
fn from(state: KalmanState<N, D>) -> Self
Converts to this type from the input type.
source§impl<N: Copy + RealField, D: Dim> KalmanEstimator<N, D> for KalmanState<N, D>
impl<N: Copy + RealField, D: Dim> KalmanEstimator<N, D> for KalmanState<N, D>
source§fn kalman_state(&self) -> Result<KalmanState<N, D>, &str>
fn kalman_state(&self) -> Result<KalmanState<N, D>, &str>
The estimator’s estimate of the system’s KalmanState.
source§impl<N: PartialEq + RealField, D: PartialEq + Dim> PartialEq for KalmanState<N, D>
impl<N: PartialEq + RealField, D: PartialEq + Dim> PartialEq for KalmanState<N, D>
source§fn eq(&self, other: &KalmanState<N, D>) -> bool
fn eq(&self, other: &KalmanState<N, D>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<N: Copy + RealField, D: Dim> TryFrom<KalmanState<N, D>> for InformationRootState<N, D>
impl<N: Copy + RealField, D: Dim> TryFrom<KalmanState<N, D>> for InformationRootState<N, D>
source§impl<N: RealField, D: Dim> TryFrom<KalmanState<N, D>> for InformationState<N, D>
impl<N: RealField, D: Dim> TryFrom<KalmanState<N, D>> for InformationState<N, D>
impl<N: RealField, D: Dim> StructuralPartialEq for KalmanState<N, D>
Auto Trait Implementations§
impl<N, D> !RefUnwindSafe for KalmanState<N, D>
impl<N, D> !Send for KalmanState<N, D>
impl<N, D> !Sync for KalmanState<N, D>
impl<N, D> !Unpin for KalmanState<N, D>
impl<N, D> !UnwindSafe for KalmanState<N, D>
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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.