matchCluster: Correspondence between clusters

Description Usage Arguments Value Warning See Also Examples

Description

This function returns the best correspondence between two label vectors.

Usage

1
matchCluster(actual, predicted)

Arguments

actual

This is a vector that represents the actual cluster of the data

predicted

This is the predicted cluster returned by the EM algorithm

Value

component

This returns the corresponding cluster label with respect to the true cluster label provided

Warning

To use this function, you must have a vector returned by one of the EM algorithms provided

See Also

cluster_em

Examples

1
2
3
4
5
6
  ## Not run: 
   actual<-c("a","b","a","a","a")
   predicted<-c(1,2,2,1,1)
   purity(actual,predicted)

## End(Not run)

RobustEM documentation built on April 14, 2017, 10:05 a.m.