powered by
Harmonic mean of precision and recall.
f1_score(detected, true_cp, tolerance = 5)
F1 score (0 to 1)
Vector of detected changepoint locations
Vector of true changepoint locations
Maximum distance for a match
f1_score(c(48, 102, 150), c(50, 100), tolerance = 5)
Run the code above in your browser using DataLab