* @return Hierarchical clustering
*/
@SuppressWarnings("unused")
private Clustering<Model> extractClusters_erich(DBIDs ids, final DataStore<DBID> pi, final DataStore<D> lambda, int minclusters) {
// extract a hierarchical clustering
ArrayModifiableDBIDs order = DBIDUtil.newArray(ids);
// sort by lambda
Collections.sort(order, new CompareByLambda<D>(lambda));
D curdist = null;
D stopdist = null;
if(minclusters < ids.size()) {
stopdist = lambda.get(order.get(ids.size() - minclusters));
}
ModifiableHierarchy<Cluster<Model>> hier = new HierarchyHashmapList<Cluster<Model>>();
Map<DBID, Cluster<Model>> clusters = new HashMap<DBID, Cluster<Model>>();
Map<DBID, ModifiableDBIDs> cids = new HashMap<DBID, ModifiableDBIDs>();