ARI: Adjusted Rand Index

Description Usage Arguments Value Examples

View source: R/misc.R

Description

Calculate the Adjusted Rand Index between two clusterings

Usage

1
ARI(z, truez)

Arguments

z

input vector

truez

reference vector

Value

Adjusted Rand Index of z against truez

Examples

1
2
ARI(c(1,1,2,2,3,3), c(2,2,1,1,3,3)) ## 1 - doesn't care for labels
ARI(c(1,1,2,2,3,3), c(1,1,1,1,2,2)) ## 0.444

SBMSplitMerge documentation built on July 1, 2020, 5:23 p.m.