ari: Adjusted Rand index

Description Usage Arguments Value See Also Examples

View source: R/ari.R

Description

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

Usage

1
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

1
2
3
x = sample(1:3,20,replace = TRUE)
y = sample(1:3,20,replace = TRUE)
ari(x,y)

Example output

Loading required package: fda
Loading required package: splines
Loading required package: Matrix

Attaching package: 'fda'

The following object is masked from 'package:graphics':

    matplot

Loading required package: parallel
Loading required package: funFEM
Loading required package: MASS
Loading required package: elasticnet
Loading required package: lars
Loaded lars 1.2

[1] 0.001410076

funLBM documentation built on March 17, 2021, 5:07 p.m.

Related to ari in funLBM...