pub struct LinearSystem<T: RealField, const N: usize, const U: usize> { /* private fields */ }Expand description
A linear system with an input. Defined by the transition matrix F, control matrix B and covariance matrix Q.
Implementations§
Source§impl<T: RealField + Copy, const N: usize, const U: usize> LinearSystem<T, N, U>
impl<T: RealField + Copy, const N: usize, const U: usize> LinearSystem<T, N, U>
Sourcepub fn new(
F: SMatrix<T, N, N>,
Q: SMatrix<T, N, N>,
B: SMatrix<T, N, U>,
x_initial: SVector<T, N>,
) -> Self
pub fn new( F: SMatrix<T, N, N>, Q: SMatrix<T, N, N>, B: SMatrix<T, N, U>, x_initial: SVector<T, N>, ) -> Self
Create new LinearSystem from the transition matrix F, process covariance Q and control matrix B.
Sourcepub fn set_transition(&mut self, transition: SMatrix<T, N, N>)
pub fn set_transition(&mut self, transition: SMatrix<T, N, N>)
Set a new transition matrix, also updating the transpose
Sourcepub fn covariance_mut(&mut self) -> &mut SMatrix<T, N, N>
pub fn covariance_mut(&mut self) -> &mut SMatrix<T, N, N>
Get a mutable reference to the process covariance matrix
Trait Implementations§
Source§impl<T: Clone + RealField, const N: usize, const U: usize> Clone for LinearSystem<T, N, U>
impl<T: Clone + RealField, const N: usize, const U: usize> Clone for LinearSystem<T, N, U>
Source§fn clone(&self) -> LinearSystem<T, N, U>
fn clone(&self) -> LinearSystem<T, N, U>
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 moreSource§impl<T: RealField + Copy, const N: usize, const U: usize> InputSystem<T, N, U> for LinearSystem<T, N, U>
impl InputSystem for LinearSystem
impl<T: RealField + Copy, const N: usize, const U: usize> InputSystem<T, N, U> for LinearSystem<T, N, U>
impl InputSystem for LinearSystem
Source§impl<T: RealField + Copy, const N: usize, const U: usize> System<T, N, U> for LinearSystem<T, N, U>
Implement System for LinearSystem
impl<T: RealField + Copy, const N: usize, const U: usize> System<T, N, U> for LinearSystem<T, N, U>
Implement System for LinearSystem
Source§fn transition(&self) -> &SMatrix<T, N, N>
fn transition(&self) -> &SMatrix<T, N, N>
Get the transition matrix (Jacobian)
Source§fn transition_transpose(&self) -> &SMatrix<T, N, N>
fn transition_transpose(&self) -> &SMatrix<T, N, N>
Get the transpose of the transition matrix
Source§fn covariance(&self) -> &SMatrix<T, N, N>
fn covariance(&self) -> &SMatrix<T, N, N>
Get a reference to the process covariance matrix
Auto Trait Implementations§
impl<T, const N: usize, const U: usize> Freeze for LinearSystem<T, N, U>where
T: Freeze,
impl<T, const N: usize, const U: usize> RefUnwindSafe for LinearSystem<T, N, U>where
T: RefUnwindSafe,
impl<T, const N: usize, const U: usize> Send for LinearSystem<T, N, U>
impl<T, const N: usize, const U: usize> Sync for LinearSystem<T, N, U>
impl<T, const N: usize, const U: usize> Unpin for LinearSystem<T, N, U>where
T: Unpin,
impl<T, const N: usize, const U: usize> UnwindSafe for LinearSystem<T, N, U>where
T: UnwindSafe,
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.