pub struct KalmanFilter2D {
pub x: [f32; 2],
pub p: [f32; 4],
pub q_var: f32,
pub r_var: f32,
}Expand description
2-State (Position + Velocity) linear Kalman filter for motion tracking and sensor fusion.
Fields§
§x: [f32; 2]State vector: [position, velocity]
p: [f32; 4]2x2 State covariance matrix (row-major: [p00, p01, p10, p11])
q_var: f32Process noise variance
r_var: f32Measurement noise variance
Implementations§
Trait Implementations§
Source§impl Clone for KalmanFilter2D
impl Clone for KalmanFilter2D
Source§fn clone(&self) -> KalmanFilter2D
fn clone(&self) -> KalmanFilter2D
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KalmanFilter2D
Auto Trait Implementations§
impl Freeze for KalmanFilter2D
impl RefUnwindSafe for KalmanFilter2D
impl Send for KalmanFilter2D
impl Sync for KalmanFilter2D
impl Unpin for KalmanFilter2D
impl UnsafeUnpin for KalmanFilter2D
impl UnwindSafe for KalmanFilter2D
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