Learn R Programming

HDCD (version 1.0)

ARI: ARI

Description

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

Usage

ARI(etas, eta_hats, n)

Value

The ARI

Arguments

etas

Vector of true change-points

eta_hats

Vector of estimated change-points

n

Sample size

Examples

Run this code
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