fn infer_delta( prev_point: i16, target_point: i16, next_point: i16, prev_delta: f32, next_delta: f32, ) -> f32