Takes in a list of clusters and outputs a single vector with the
index from the cluster list.
Usage
changeClusterFormat(clusterList)
Arguments
clusterList
A list of vectors, where each vector contains numbers. There should
be no repeats in the numbers.
Value
A vector of cluster indices.
Details
Takes in a list of clusters, for example [2 3][1 5 4],
and converts it to a single vector where each element is the cluster
index. For the example above, it would produce [2 1 1 2 2].