pub fn repeating_peak(
o: &Overload,
start: [f64; 2],
samples: &[(f64, [f64; 2])],
(t_end, end): (f64, [f64; 2]),
) -> f64Expand description
The highest a drive’s thermal image (drive::Overload) reaches when a pass repeats for long. The pass ran from the
nodes [slow, chips] start and ended at end (time, nodes), with samples (time, nodes) between. Each node is linear
in its start: one started at x0 lies (x0 - start) exp(-t / tau) above the pass’s at every t. The start a repeating
pass returns to is x0 = f / (1 - exp(-T / tau)), where f = end - start exp(-T / tau) is what the pass itself added.
The image is the nodes’ sum.
shortcut: where the image tripped in the pass the drive lowered its current and the image is no longer linear in its start; the peak is then that of the pass as it ran, corrected as if it were. It is at or above the trip anyway.