pub fn resample(
trajectory: &[(i64, &[f32])],
bucket_width: i64,
method: ResampleMethod,
) -> Result<Vec<(i64, Vec<f32>)>, AnalyticsError>Expand description
Resample a trajectory to a coarser temporal resolution.
Groups points into buckets of bucket_width microseconds,
then applies the chosen resampling method.
Returns (bucket_timestamp, vector) pairs.