AdjRandIndex: Calculate Adjusted Rand Index

Description Usage Arguments Value References See Also Examples

View source: R/AdjRandIndex.R

Description

Calculate Adjusted Rand Index measuring the similarity between two clustering labels.

Usage

1

Arguments

x

A vector of class labels

y

A vector of class labels to be compared with x. The length of y should be the same as x.

Value

This function returns Adjusted Rand Index between two label vectors x and y.

References

\insertRef

hubert1985comparingMKKC

See Also

NormMI, Purity

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# true label
x <- rep(1:3, each = 10)

# predicted label
y <- sample(x)

# compare x and y
AdjRandIndex(x, y)
NormMI(x, y)
Purity(x, y)

SeojinBang/MKKC documentation built on Sept. 18, 2019, 1:42 p.m.