getPermute: Permute labels

Description Usage Arguments Value

Description

Permute the estimated labels to be consistent with the reference labels.

Usage

1
getPermute(est.label, true.label)

Arguments

est.label

a vector of estimated clusters, containing 1, ..., K

true.label

a vector of reference/true labels

Value

A vector of length K, i.permute, such that the i-th reference cluster maps to i.permute[i] in estimated clusters.


lingxuez/SOUP documentation built on May 28, 2019, 3:38 p.m.