Skip to content

Commit c1f5a9e

Browse files
committed
DOC: add detail about StateSpace.dcgain
Thanks to Rory Yorke (@roryyorke) and Richard M. Murray (@murrayrm) for comments and suggesting text. based on discussion at ee75d9a
1 parent ee75d9a commit c1f5a9e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

control/statesp.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,15 +601,21 @@ def sample(self, Ts, method='zoh', alpha=None):
601601
def dcgain(self):
602602
"""Return the zero-frequency gain
603603
604-
The zero-frequency gain of a state-space system is given by:
604+
The zero-frequency gain of a continuous-time state-space
605+
system is given by:
605606
606607
.. math: G(0) = - C A^{-1} B + D
607608
609+
and of a discrete-time state-space system by:
610+
611+
.. math: G(1) = C (I - A)^{-1} B + D
612+
608613
Returns
609614
-------
610615
gain : ndarray
611-
The zero-frequency gain, or if the system has a pole at
612-
the origin, an array of the same size filled with np.nan.
616+
An array of shape (outputs,inputs); the array will either
617+
be the zero-frequency (or DC) gain, or, if the frequency
618+
response is singular, the array will be filled with np.nan.
613619
"""
614620
try:
615621
if self.isctime():

0 commit comments

Comments
 (0)