use of de.lmu.ifi.dbs.elki.algorithm.clustering.trivial.ByLabelHierarchicalClustering in project elki by elki-project.
the class VisualizerContext method generateDefaultClustering.
/**
* Generate a default (fallback) clustering.
*
* @return generated clustering
*/
private Clustering<Model> generateDefaultClustering() {
final Database db = ResultUtil.findDatabase(hier);
Clustering<Model> c = null;
try {
// Try to cluster by labels
ByLabelHierarchicalClustering split = new ByLabelHierarchicalClustering();
c = split.run(db);
} catch (NoSupportedDataTypeException e) {
// Put everything into one
c = new TrivialAllInOne().run(db);
}
return c;
}
Aggregations