Learn R Programming

RobustEM (version 1.0)

matchCluster: Correspondence between clusters

Description

This function returns the best correspondence between two label vectors.

Usage

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

Run this code
  ## Not run: 
#    actual<-c("a","b","a","a","a")
#    predicted<-c(1,2,2,1,1)
#    purity(actual,predicted)
# ## End(Not run)

Run the code above in your browser using DataLab