5.1.6.2. scipy.signal.lti¶
-
class
scipy.signal.lti(*system)[source]¶ Linear Time Invariant system base class.
Parameters: *system : arguments
The lti class can be instantiated with either 2, 3 or 4 arguments. The following gives the number of arguments and the corresponding subclass that is created:
- 2: TransferFunction: (numerator, denominator)
- 3: ZerosPolesGain: (zeros, poles, gain)
- 4: StateSpace: (A, B, C, D)
Each argument can be an array or a sequence.
Notes
lti instances do not exist directly. Instead, lti creates an instance of one of its subclasses: StateSpace, TransferFunction or ZerosPolesGain.
Changing the value of properties that are not directly part of the current system representation (such as the zeros of a StateSpace system) is very inefficient and may lead to numerical inaccuracies.
-
__init__(*system)[source]¶ Initialize the lti baseclass.
The heavy lifting is done by the subclasses.
Methods
__init__(*system)Initialize the lti baseclass. bode([w, n])Calculate Bode magnitude and phase data of a continuous-time system. freqresp([w, n])Calculate the frequency response of a continuous-time system. impulse([X0, T, N])Return the impulse response of a continuous-time system. output(U, T[, X0])Return the response of a continuous-time system to input U. step([X0, T, N])Return the step response of a continuous-time system. Attributes
AState matrix of the StateSpace system. BInput matrix of the StateSpace system. COutput matrix of the StateSpace system. DFeedthrough matrix of the StateSpace system. denDenominator of the TransferFunction system. gainGain of the ZerosPolesGain system. numNumerator of the TransferFunction system. polesPoles of the ZerosPolesGain system. zerosZeros of the ZerosPolesGain system.