Skip to main content

pade_delay

Function pade_delay 

Source
pub fn pade_delay(t: f64, n: usize) -> (Vec<f64>, Vec<f64>)
Expand description

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.