Learn R Programming

funLBM (version 2.3)

ari: Adjusted Rand index

Description

The adjusted Rand index (ARI) allows to compare two clustering partitions.

Usage

ari(x, y)

Arguments

x

The first partition to compare (as vector).

y

The second partition to compare (as vector).

Value

ari

The value of the ARI.

See Also

funLBM

Examples

Run this code
# NOT RUN {
x = sample(1:3,20,replace = TRUE)
y = sample(1:3,20,replace = TRUE)
ari(x,y)
# }

Run the code above in your browser using DataLab