Package controlsystems :: Module types :: Class StateSpace
[hide private]

Class StateSpace

source code

object --+
         |
        StateSpace

StateSpace type

This class implements the StateSpace type, based on the Matrix type. The state-space object uses 4 matrices, like:

>>> tf = TransferFunction([1], [1, 2, 3])
>>> a = StateSpace(tf)
>>> print a
State-Space model:
.
Matrix A:
0     1
-3   -2
.
Matrix B:
0
1
.
Matrix C:
1    0
.
Matrix D:
0
Instance Methods [hide private]
 
__init__(self, a, b=None, c=None, d=[[0]])
Initialization of StateSpace object
source code
 
__ss(self, a, b, c, d)
Initialization of StateSpace object using matrices
source code
 
__tf2ss(self, tf)
Initialization of StateSpace object using transfer function
source code
 
__str__(self)
String representation
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, a, b=None, c=None, d=[[0]])
(Constructor)

source code 

Initialization of StateSpace object

This method initialize a StateSpace object, using matrices or a TransferFunction object.

Overrides: object.__init__

__ss(self, a, b, c, d)

source code 

Initialization of StateSpace object using matrices

This method initialize a StateSpace object, using 4 matrices.

__tf2ss(self, tf)

source code 

Initialization of StateSpace object using transfer function

This method initialize a StateSpace object, using a TransferFunction object.

__str__(self)
(Informal representation operator)

source code 
String representation

This method returns the string representation of the state-space
models. For example:

    State-Space model:
    .
    Matrix A:
    0     1
    -3   -2
    .
    Matrix B:
    0
    1
    .
    Matrix C:
    1    0
    .
    Matrix D:
    0

Overrides: object.__str__