Class ClusteringAlgorithmUtil


  • public final class ClusteringAlgorithmUtil
    extends java.lang.Object
    Utility functionality for writing clustering algorithms.
    Since:
    0.7.0
    Author:
    Erich Schubert
    • Constructor Detail

      • ClusteringAlgorithmUtil

        private ClusteringAlgorithmUtil()
        Private constructor. Static methods only.
    • Method Detail

      • partitionsFromIntegerLabels

        public static ArrayModifiableDBIDs[] partitionsFromIntegerLabels​(DBIDs ids,
                                                                         IntegerDataStore assignment,
                                                                         int k)
        Collect clusters from their [0;k-1] integer labels.
        Parameters:
        ids - Objects
        assignment - Cluster assignment
        k - Number of labels (must be labeled 0 to k-1)
        Returns:
        Partitions