MatchClusters: Optimal match between two different cluster/class assignments

Description Usage Arguments Value

View source: R/MatchClusters.R

Description

Optimal match between two different cluster/class assignments

Usage

1

Arguments

x

integer vector representing a set of cluster/class memberships.

r

integer vector representing an alternative set of cluster/class memberships (e.g. reference or ground truth assignments).

Value

MatchClusters returns an integer matrix with the following columns:

x2r

translation from x to r cluster/class identifiers

r2x

translation from r to x cluster/class identifiers

For instance, noting m such translation matrix, then

m[3, "x2r"]

is the best matching cluster identifier r for the cluster 3 in classification x

m[5, "r2x"]

is the best matching cluster identifier x for the cluster 5 in classification r


benja0x40/QuickShift documentation built on Jan. 22, 2021, 7:43 p.m.