pub fn ringing(
time: &[f64],
signal: &[f64],
from: f64,
until: f64,
) -> Option<Ringing>Expand description
Fits A e^(-σt) sin(ω_d t + φ) + c0 + c1 t + c2 t² to signal between from and until (s), with t
from from. The quadratic takes the rigid motion under the step. The start for ω_d is the strongest
frequency of what is left after the trend; the start for φ the best of eight. None with fewer than
20 rows in the span or no fit.