Skip to main content

Module lti

Module lti 

Source
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).

See the book entry Continuous-time systems.

Structs§

ContinuousStateSpace
A continuous-time state-space model with real matrices (SciPy’s StateSpace with dt=None).
DiscreteMatrices
A discretised system x[k+1] = A x[k] + B u[k], y[k] = C x[k] + D u[k] with sample time dt.
PlacedPoles
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’s cont2discrete).
InputHold
How the input is held between samples in ContinuousStateSpace::lsim.

Functions§

pade_delay
The [n/n] Padé approximant of a time delay e^{−sT} as a transfer function (num, den), highest power first: Σ (−1)^j c_j (sT)^j / Σ c_j (sT)^j with c_j = (2n − j)! n! / ((2n)! j! (n − j)!). It is all-pass, |H(iω)| = 1, and its phase matches −ωT to order (ωT)^{2n+1}; append it to a model with tf2ss to include a delay.
place_poles
A state-feedback gain K that places the eigenvalues of A − B K at poles (SciPy’s place_poles). Complex poles must come in conjugate pairs, and no pole may be repeated more often than the rank of B.
poly_from_roots
The coefficients of ∏ (s − rᵢ), highest power first (NumPy’s poly), with the imaginary parts dropped when the roots come in conjugate pairs.
ss2tf
The transfer functions from input input to every output (SciPy’s ss2tf): a common denominator det(sI − A) and one numerator row per output, each of length n + 1, from det(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’s tf2ss), for a proper H (m ≤ n): A has −a₁/a₀, …, −a_n/a₀ in its first row and ones below the diagonal, B = e₁, C = b̃₁.. − b̃₀ ã₁.. with b̃ the numerator padded to length n + 1, and D = 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.