View source: R/Evaluation_metrics.R
ARI | R Documentation |
Computes the Adjusted Rand Index (ARI) of a vector of estimated change-points.
ARI(etas, eta_hats, n)
etas |
Vector of true change-points |
eta_hats |
Vector of estimated change-points |
n |
Sample size |
The ARI
library(HDCD)
n = 400
true_changepoints = c(50,100)
est_changepoints = c(51,110)
ARI(true_changepoints, est_changepoints,n)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.