powered by
Computes the Adjusted Rand Index (ARI) of a vector of estimated change-points.
ARI(etas, eta_hats, n)
The ARI
Vector of true change-points
Vector of estimated change-points
Sample size
library(HDCD) n = 400 true_changepoints = c(50,100) est_changepoints = c(51,110) ARI(true_changepoints, est_changepoints,n)
Run the code above in your browser using DataLab