This function returns the best correspondence between two label vectors.

1 | ```
matchCluster(actual, predicted)
``` |

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

`predicted` |
This is the predicted cluster returned by the EM algorithm |

`component` |
This returns the corresponding cluster label with respect to the true cluster label provided |

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

`cluster_em`

1 2 3 4 5 6 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.