pub fn tf2ss(
num: &[f64],
den: &[f64],
) -> Result<ContinuousStateSpace, ErrorsJSL>Expand description
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̃₀.