pub fn times_to_grid_steps(times: &[f64], t: f64, steps: usize) -> Vec<usize>Expand description
Map exercise/observation times to 1-based indices on an equally
spaced grid of steps steps over [0, t]: nearest step, clamped to
[1, steps], strictly increasing so no two times collapse.