Learn R Programming

RegimeChange (version 0.1.1)

adjusted_rand_index: Adjusted Rand Index

Description

Rand Index corrected for chance agreement.

Usage

adjusted_rand_index(detected, true_cp, n)

Value

Adjusted Rand Index (can be negative, 1 is perfect)

Arguments

detected

Vector of detected changepoint locations

true_cp

Vector of true changepoint locations

n

Total number of observations