utils
Shared matching helpers for single-run metrics.
- pysatl_cpd.analysis.metrics.single_run.utils.validate_error_margin(error_margin)[source]
Validate that both margin components are non-negative.
- pysatl_cpd.analysis.metrics.single_run.utils.match_change_points(detected_change_points, true_change_points, error_margin)[source]
Match detections to true change points using greedy left-to-right assignment.
For each true change point (in sorted order), the earliest unmatched detection within the error margin window is assigned.
- Parameters:
- Returns:
Mapping from each true change point to the set of matched detections.
- Return type: