Learn R Programming

MLVSBM (version 0.2.4)

ARI: Compare two clustering with the Adjusted Rand Index

Description

Compare two clustering with the Adjusted Rand Index

Usage

ARI(x, y)

Value

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

Arguments

x

A vector of integers, the clusters labels

y

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

Examples

Run this code
ARI(x = c(1, 2, 1), y = c(2, 2, 1))

Run the code above in your browser using DataLab