#[non_exhaustive]pub struct KalmanResult {
pub next_state: C1D,
pub residual_error: C1D,
}Expand description
The output of one predict-update cycle of a KalmanFilter.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.next_state: C1DThe updated a-posteriori state estimate after incorporating the current measurement.
residual_error: C1DThe innovation or residual vector z[k] - H x_pred[k] formed from the
incoming measurement and the predicted observation.
Trait Implementations§
Source§impl Clone for KalmanResult
impl Clone for KalmanResult
Source§impl Debug for KalmanResult
impl Debug for KalmanResult
Source§impl PartialEq for KalmanResult
impl PartialEq for KalmanResult
Source§impl StreamOperator<ArrayBase<OwnedRepr<Complex<f64>>, Dim<[usize; 1]>>, KalmanResult> for KalmanFilter
impl StreamOperator<ArrayBase<OwnedRepr<Complex<f64>>, Dim<[usize; 1]>>, KalmanResult> for KalmanFilter
Source§fn process(
&mut self,
data_in: &[C1D],
) -> Result<Option<Vec<KalmanResult>>, ErrorsJSL>
fn process( &mut self, data_in: &[C1D], ) -> Result<Option<Vec<KalmanResult>>, ErrorsJSL>
Processes a slice of measurement vectors and returns the updated state estimate and residual after each measurement.
Input:
- Each element of
data_inis one measurement vectorz[k]
Output:
- The returned vector contains one
KalmanResultper input measurement, in the same order as the measurements were processed
For an empty input slice, this method returns Ok(None) to match the
stream-operator conventions used elsewhere in the crate.
impl StructuralPartialEq for KalmanResult
Auto Trait Implementations§
impl Freeze for KalmanResult
impl RefUnwindSafe for KalmanResult
impl Send for KalmanResult
impl Sync for KalmanResult
impl Unpin for KalmanResult
impl UnsafeUnpin for KalmanResult
impl UnwindSafe for KalmanResult
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