calARI: Calculate Adjusted Rand Index

Description Usage Arguments Value Examples

View source: R/calARI.R

Description

Calculate the Adjusted Rand Index of the clustering results.

Usage

1
calARI(a, b)

Arguments

a

A vector that contains the cluster label of each sample.

b

A vector that contains the true label of each sample.

Value

A real number that means the adjusted rand index between the two clustering results.

Examples

1
2
3
a=c(1,3,2,2,4,6,5)
b=c(3,1,2,5,6,4,3)
calARI(a,b)

GaoLabXDU/CEPICS documentation built on June 9, 2020, 2:31 a.m.