pub enum OutputConvention {
Standard,
Updated,
}Expand description
When a StateSpace model reads its output: from the state before or after the update.
Variants§
Standard
The textbook and SciPy convention, y[k] = C x[k] + D u[k]: the output is read from the
current state, before it is updated. Use StateSpace::new_standard.
Updated
y[k] = C x[k+1] + D u[k]: the state is updated first and the output read from the new
state, as in the C++ implementation this type mirrors. This is what StateSpace::new
builds, and it equals the standard model (A, B, C A, C B + D).
Trait Implementations§
Source§impl Clone for OutputConvention
impl Clone for OutputConvention
impl Copy for OutputConvention
Source§impl Debug for OutputConvention
impl Debug for OutputConvention
impl Eq for OutputConvention
Source§impl PartialEq for OutputConvention
impl PartialEq for OutputConvention
impl StructuralPartialEq for OutputConvention
Auto Trait Implementations§
impl Freeze for OutputConvention
impl RefUnwindSafe for OutputConvention
impl Send for OutputConvention
impl Sync for OutputConvention
impl Unpin for OutputConvention
impl UnsafeUnpin for OutputConvention
impl UnwindSafe for OutputConvention
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