template<int STATES, int INPUTS, int OUTPUTS>
class LinearSystem< STATES, INPUTS, OUTPUTS >
This class represents a state-space model of a linear system.
It contains the following continuous matrices: A, System matrix B, Input matrix C, Output matrix D, Feedthrough matrix
|
| | LinearSystem (const MatrixA &A, const MatrixB &B, const MatrixC &C, const MatrixD &D) |
|
MatrixA | A () |
| | Returns the continuous system matrix A.
|
|
MatrixB | B () |
| | Returns the continuous input matrix B.
|
|
const std::tuple< std::tuple< MatrixA, MatrixB > > & | discAB (const double &dt) |
| | Returns a tuple of A and B after being discretized.
|
|
MatrixC | C () |
| | Returns the output matrix C.
|
|
MatrixD | D () |
| | Returns the feedthrough matrix D.
|
| VectorX | compute_X (const VectorX &x, const VectorU &u, double dt) |
| VectorY | compute_Y (const VectorX &x, const VectorU &u) |