public class SimpleLTISystem extends LTISystem
A linear time-invariant system with the following properties:
Constructor and Description |
---|
SimpleLTISystem(float[] A,
float[][] B,
float[][] C,
float[] x0,
Units[] outputUnits)
See also LTISystem.
|
SimpleLTISystem(int stateDim,
int inputDim,
int outputDim)
Creates an appropriately-dimensioned system with all-zero matrices, so that elements
can be changed later.
|
Modifier and Type | Method and Description |
---|---|
float[] |
f(float t,
float[] u)
The dynamic equation.
|
float[] |
g(float t,
float[] u)
The output equation.
|
void |
setA(float[][] newA) |
void |
setB(float[][] newB) |
void |
setC(float[][] newC) |
clone, getA, getA, getB, getB, getC, getC, getD, getD, getInputDimension, getOutputDimension, getOutputUnits, getState, getStateDimension, setD, setInputDimension, setOutputDimension, setOutputUnits, setState, setStateDimension
public SimpleLTISystem(float[] A, float[][] B, float[][] C, float[] x0, Units[] outputUnits)
A
- Diagonal entries of dynamics matrixB
- Input matrixC
- Output matrixx0
- Initial stateoutputUnits
- Units in which each dimension of the output are expressedpublic SimpleLTISystem(int stateDim, int inputDim, int outputDim)
stateDim
- Number of state variablesinputDim
- Number of inputsoutputDim
- Number of outputspublic float[] f(float t, float[] u)
DynamicalSystem
f
in interface DynamicalSystem
f
in class LTISystem
t
- Timeu
- Input vectorDynamicalSystem.f(float, float[])
public float[] g(float t, float[] u)
DynamicalSystem
g
in interface DynamicalSystem
g
in class LTISystem
t
- Timeu
- Input vectorDynamicalSystem.g(float, float[])
public void setA(float[][] newA)
public void setB(float[][] newB)