6868__all__ = ['StateSpace' , 'ss' , 'rss' , 'drss' , 'tf2ss' , 'ssdata' ]
6969
7070class StateSpace (LTI ):
71- """A class for representing state-space models
71+ """StateSpace(A, B, C, D[, dt])
72+
73+ A class for representing state-space models
7274
7375 The StateSpace class is used to represent state-space realizations of linear
7476 time-invariant (LTI) systems:
@@ -88,15 +90,19 @@ class StateSpace(LTI):
8890 means the system timebase is not specified. If 'dt' is set to True, the
8991 system will be treated as a discrete time system with unspecified
9092 sampling time.
91-
9293 """
9394
9495 def __init__ (self , * args ):
95- """Construct a state space object.
96+ """
97+ StateSpace(A, B, C, D[, dt])
9698
97- The default constructor is StateSpace(A, B, C, D), where A, B, C, D are
98- matrices or equivalent objects. To call the copy constructor, call
99- StateSpace(sys), where sys is a StateSpace object.
99+ Construct a state space object.
100+
101+ The default constructor is StateSpace(A, B, C, D), where A, B, C, D
102+ are matrices or equivalent objects. To create a discrete time system,
103+ use StateSpace(A, B, C, D, dt) where 'dt' is the sampling time (or
104+ True for unspecified sampling time). To call the copy constructor,
105+ call StateSpace(sys), where sys is a StateSpace object.
100106
101107 """
102108
@@ -110,8 +116,7 @@ def __init__(self, *args):
110116 elif len (args ) == 1 :
111117 # Use the copy constructor.
112118 if not isinstance (args [0 ], StateSpace ):
113- raise TypeError ("The one-argument constructor can only take in \
114- a StateSpace object. Recived %s." % type (args [0 ]))
119+ raise TypeError ("The one-argument constructor can only take in a StateSpace object. Received %s." % type (args [0 ]))
115120 A = args [0 ].A
116121 B = args [0 ].B
117122 C = args [0 ].C
@@ -956,7 +961,8 @@ def _mimo2simo(sys, input, warn_conversion=False):
956961 return sys
957962
958963def ss (* args ):
959- """
964+ """ss(A, B, C, D[, dt])
965+
960966 Create a state space system.
961967
962968 The function accepts either 1, 4 or 5 parameters:
@@ -1014,6 +1020,7 @@ def ss(*args):
10141020
10151021 See Also
10161022 --------
1023+ StateSpace
10171024 tf
10181025 ss2tf
10191026 tf2ss
0 commit comments