precision_score: Precision Score with Tolerance
Description
Proportion of detected changepoints that are within tolerance of a true one.
Usage
precision_score(detected, true_cp, tolerance = 5)
Arguments
- detected
Vector of detected changepoint locations
- true_cp
Vector of true changepoint locations
- tolerance
Maximum distance for a match