Function detect

Source
pub fn detect(
    entity_id: u64,
    trajectory: &[(i64, &[f32])],
    config: &PeltConfig,
) -> Vec<ChangePoint>
Expand description

Run PELT change point detection on a trajectory.

Input: trajectory of (timestamp, vector) pairs, sorted by timestamp. Returns detected ChangePoints.