match_clusters: Match two clusterings using the Hungarian algorithm.

Description Usage Arguments Value

Description

Match two clusterings using the Hungarian algorithm.

Usage

1
match_clusters(n, cluster1, cluster2)

Arguments

n

Number of items. Cluster indices shluld be in the range [1,n].

cluster1

First vector of cluster indices.

cluster2

Second vector of cluster indices.

Value

A vector of cluster indices for cluster1, so that they are best matched to cluster2.


bwrc/corecluster-r documentation built on May 13, 2019, 9:12 a.m.