pub fn lag(time: &[f64], input: &[f64], output: &[f64]) -> Option<Lag>Expand description
Fits gain, lag and dead time from input (a setpoint) to output. The trace has to start at rest.
The start is the best point of a grid (dead time 0 to 20 rows, time constant 0 and 1 to 100 rows). A
time constant the trace cannot resolve (shorter than a fraction of a row, or a following error too small
to show it) is reported as 0 ± one row, and gain and dead time are fitted without it.