Learn R Programming

RegimeChange (version 0.1.1)

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)

Value

Rand Index (0 to 1)

Arguments

detected

Vector of detected changepoint locations

true_cp

Vector of true changepoint locations

n

Total number of observations