clusterEval: Clustering Evaluation Against Ground Truth

Description Usage Arguments Value Examples

Description

This function evaluates the quality of a clustering when a ground truth clustering is available. It computes the percentage of mismatched nodes when matching the clusters.

Usage

1
clusterEval(x, y, verb = TRUE, perf = FALSE)

Arguments

x

vector of size n describing a clustering.

y

vector of size n describing a second clustering that will be compared to x.

verb

boolean value: if TRUE, the function prints a line for each cluster.

perf

boolean value: if TRUE, the function stops when it detects a different number of clusters and return 0.

Value

integer: percentage of correctly matched nodes when comparing the two clustering x and y.

Examples

1
2
3
g = generateEdgeList(n=1000)
res = ML_RMCL(g)
clusterEval(g$clusters, res)

DavidGilgien/ML.RMCL documentation built on May 6, 2019, 1:54 p.m.