Values in Cls are consistently recoded to positive consecutive integers
ClusterNormalize(Cls)
Arguments
Cls: [1:n numerical vector of numbers defining the classification as the main output of the clustering algorithm for the n cases of data. It has k unique numbers representing the arbitrary labels of the clustering.
Details
For recoding depending on cluster size please see ClusterRenameDescendingSize.
Returns
The renamed classification. A vector of clusters recoded to positive consecutive integers.
Author(s)
.
See Also
ClusterRenameDescendingSize
Examples
data('Lsun3D')Cls=Lsun3D$Cls
#not desceending cluster numbersCls[Cls==1]=543Cls[Cls==4]=1# Now ordered consecutivelyClusterNormalize(Cls)