55Routines in this module:
66
77sample_system()
8+ c2d()
89"""
910
1011"""Copyright (c) 2012 by California Institute of Technology
@@ -58,16 +59,19 @@ def sample_system(sysc, Ts, method='zoh', alpha=None, prewarp_frequency=None):
5859
5960 Parameters
6061 ----------
61- sysc : LTI (StateSpace or TransferFunction)
62+ sysc : LTI (:class:` StateSpace` or :class:` TransferFunction` )
6263 Continuous time system to be converted
63- Ts : real > 0
64+ Ts : float > 0
6465 Sampling period
6566 method : string
6667 Method to use for conversion, e.g. 'bilinear', 'zoh' (default)
67-
68- prewarp_frequency : real within [0, infinity)
68+ alpha : float within [0, 1]
69+ The generalized bilinear transformation weighting parameter, which
70+ should only be specified with method="gbt", and is ignored
71+ otherwise. See :func:`scipy.signal.cont2discrete`.
72+ prewarp_frequency : float within [0, infinity)
6973 The frequency [rad/s] at which to match with the input continuous-
70- time system's magnitude and phase
74+ time system's magnitude and phase (only valid for method='bilinear')
7175
7276 Returns
7377 -------
@@ -76,7 +80,7 @@ def sample_system(sysc, Ts, method='zoh', alpha=None, prewarp_frequency=None):
7680
7781 Notes
7882 -----
79- See :meth:`StateSpace.sample` or :meth:`TransferFunction.sample`` for
83+ See :meth:`StateSpace.sample` or :meth:`TransferFunction.sample` for
8084 further details.
8185
8286 Examples
@@ -99,20 +103,19 @@ def c2d(sysc, Ts, method='zoh', prewarp_frequency=None):
99103
100104 Parameters
101105 ----------
102- sysc : LTI (StateSpace or TransferFunction)
106+ sysc : LTI (:class:` StateSpace` or :class:` TransferFunction` )
103107 Continuous time system to be converted
104- Ts : real > 0
108+ Ts : float > 0
105109 Sampling period
106110 method : string
107111 Method to use for conversion, e.g. 'bilinear', 'zoh' (default)
108-
109112 prewarp_frequency : real within [0, infinity)
110113 The frequency [rad/s] at which to match with the input continuous-
111- time system's magnitude and phase
114+ time system's magnitude and phase (only valid for method='bilinear')
112115
113116 Returns
114117 -------
115- sysd : linsys
118+ sysd : LTI of the same class
116119 Discrete time system, with sampling rate Ts
117120
118121 Notes
0 commit comments