ARI function

Compare two clustering with the Adjusted Rand Index

Compare two clustering with the Adjusted Rand Index

ARI(x, y)

Arguments

  • x: A vector of integers, the clusters labels
  • y: A vector of integers of the same length as x, the clusters labels

Returns

A number between 0 (random clustering) and 1 (identical clustering)

Examples

ARI(x = c(1, 2, 1), y = c(2, 2, 1))
  • Maintainer: Saint-Clair Chabert-Liddell
  • License: GPL-3
  • Last published: 2022-08-05