ARI {HDCD}R Documentation

ARI

Description

Computes the Adjusted Rand Index (ARI) of a vector of estimated change-points.

Usage

ARI(etas, eta_hats, n)

Arguments

etas

Vector of true change-points

eta_hats

Vector of estimated change-points

n

Sample size

Value

The ARI

Examples

library(HDCD)
n = 400
true_changepoints = c(50,100)
est_changepoints = c(51,110)
ARI(true_changepoints, est_changepoints,n)

[Package HDCD version 1.1 Index]