Expand description
Continuous-time linear time-invariant systems, following scipy.signal:
x'(t) = A x(t) + B u(t), y(t) = C x(t) + D u(t).
- Conversions between transfer functions and state space (
tf2ss,ss2tf). - Simulation with zero-order or linearly interpolated inputs (
ContinuousStateSpace::lsim), step and impulse responses, all exact for the held input through the matrix exponential. - Frequency response and Bode plots (
ContinuousStateSpace::freqresp,ContinuousStateSpace::bode). - Discretisation by zero- and first-order hold, impulse invariance and the generalised
bilinear transform (Tustin, forward and backward Euler) (
ContinuousStateSpace::discretize). - Pole placement by state feedback (
place_poles).
See the book entry Continuous-time systems.
Structs§
- Continuous
State Space - A continuous-time state-space model with real matrices (SciPy’s
StateSpacewithdt=None). - Discrete
Matrices - A discretised system
x[k+1] = A x[k] + B u[k],y[k] = C x[k] + D u[k]with sample timedt. - Placed
Poles - The result of
place_poles. - Simulation
- The result of
ContinuousStateSpace::lsim: outputs and states at each time, one row per time.
Enums§
- Discretization
- Discretisation methods for
ContinuousStateSpace::discretize(SciPy’scont2discrete). - Input
Hold - How the input is held between samples in
ContinuousStateSpace::lsim.
Functions§
- pade_
delay - The
[n/n]Padé approximant of a time delaye^{−sT}as a transfer function(num, den), highest power first:Σ (−1)^j c_j (sT)^j / Σ c_j (sT)^jwithc_j = (2n − j)! n! / ((2n)! j! (n − j)!). It is all-pass,|H(iω)| = 1, and its phase matches−ωTto order(ωT)^{2n+1}; append it to a model withtf2ssto include a delay. - place_
poles - A state-feedback gain
Kthat places the eigenvalues ofA − B Katpoles(SciPy’splace_poles). Complex poles must come in conjugate pairs, and no pole may be repeated more often than the rank ofB. - poly_
from_ roots - The coefficients of
∏ (s − rᵢ), highest power first (NumPy’spoly), with the imaginary parts dropped when the roots come in conjugate pairs. - ss2tf
- The transfer functions from input
inputto every output (SciPy’sss2tf): a common denominatordet(sI − A)and one numerator row per output, each of lengthn + 1, fromdet(sI − A + B Cₖ) + (Dₖ − 1) det(sI − A). - ss2zpk
- Zeros, poles and gain from each output of a state-space model for one input (SciPy’s
ss2zpk), through the transfer function. - tf2ss
- The controllable canonical state-space form of the transfer function
H(s) = (b₀ sᵐ + … + b_m) / (a₀ sⁿ + … + a_n)(SciPy’stf2ss), for a properH(m ≤ n):Ahas−a₁/a₀, …, −a_n/a₀in its first row and ones below the diagonal,B = e₁,C = b̃₁.. − b̃₀ ã₁..withb̃the numerator padded to lengthn + 1, andD = b̃₀. - unwrap
- Removes jumps of more than π between consecutive phases by adding multiples of 2π (NumPy’s
unwrap). - zpk2ss
- A state-space model (controllable canonical form) from zeros, poles and gain (SciPy’s
zpk2ss), through the transfer function.