fn compute_segment_means( trajectory: &[(i64, &[f32])], cp_idx: usize, ) -> (Vec<f32>, Vec<f32>)
Compute mean vectors before and after a change point.