Package elki.clustering
Class ClusteringAlgorithmUtil
- java.lang.Object
-
- elki.clustering.ClusteringAlgorithmUtil
-
public final class ClusteringAlgorithmUtil extends java.lang.Object
Utility functionality for writing clustering algorithms.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ClusteringAlgorithmUtil()
Private constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArrayModifiableDBIDs[]
partitionsFromIntegerLabels(DBIDs ids, IntegerDataStore assignment, int k)
Collect clusters from their [0;k-1] integer labels.
-
-
-
Method Detail
-
partitionsFromIntegerLabels
public static ArrayModifiableDBIDs[] partitionsFromIntegerLabels(DBIDs ids, IntegerDataStore assignment, int k)
Collect clusters from their [0;k-1] integer labels.- Parameters:
ids
- Objectsassignment
- Cluster assignmentk
- Number of labels (must be labeled 0 to k-1)- Returns:
- Partitions
-
-