Skip to main content

depth_cycle

Function depth_cycle 

Source
pub fn depth_cycle(points: &[(i64, f64)]) -> Option<DepthCycle>
Expand description

Depth cycle: in points (time in ms, depth), oldest first, a refill (a rise of CYCLE_JUMP) at least CYCLE_MIN + 1 times, at least CYCLE_MIN_RUNS runs apart, at a period within CYCLE_MAX_CV, with the depth flat or falling for CYCLE_FALLING_SHARE of the steps between.