rand_index: Rand Index for Segmentation
Description
Measures agreement between detected and true segmentations.
Based on pairwise comparisons of whether points are in the same segment.
Usage
rand_index(detected, true_cp, n)
Arguments
- detected
Vector of detected changepoint locations
- true_cp
Vector of true changepoint locations
- n
Total number of observations