Skip to main content

recovery_band

Function recovery_band 

Source
pub fn recovery_band(points: &[TrajectoryPoint]) -> Option<RecoveryBand>
Expand description

Classify a system trajectory’s recovery horizon into a coarse band. Finds the peak net burden, then the first later sample at or below a near-baseline threshold (10% of peak, floored at 20 milli), and buckets the elapsed time. Returns None if there is no adverse load to recover from.

Coarse and illustrative — the band answers “hours vs days vs weeks”, not a clock time, and never implies a fitness-to-operate judgement. The trajectory must be sampled finely enough to catch the crossing; a load still above threshold at the last sample is RecoveryBand::Extended.