Class SimplifiedHierarchyExtraction.Instance
- java.lang.Object
-
- elki.clustering.hierarchical.extraction.SimplifiedHierarchyExtraction.Instance
-
- Enclosing class:
- SimplifiedHierarchyExtraction
protected class SimplifiedHierarchyExtraction.Instance extends java.lang.ObjectInstance for a single data set.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected DoubleDataStorecoredistCore distances (if available, may benull).protected ClusterMergeHistorymergesThe hierarchical result to process.
-
Constructor Summary
Constructors Constructor Description Instance(ClusterMergeHistory merges)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddSingleton(SimplifiedHierarchyExtraction.TempCluster clus, int id, DBIDRef it, double dist, boolean asCluster)Add a singleton object, as point or cluster.protected Cluster<DendrogramModel>makeCluster(int seq, double depth, DBIDs members)Make the cluster for the given objectClustering<DendrogramModel>run()Extract all clusters from the pi-lambda-representation.protected Cluster<DendrogramModel>toCluster(SimplifiedHierarchyExtraction.TempCluster temp, Clustering<DendrogramModel> clustering)Make the cluster for the given object
-
-
-
Field Detail
-
merges
protected ClusterMergeHistory merges
The hierarchical result to process.
-
coredist
protected DoubleDataStore coredist
Core distances (if available, may benull).
-
-
Constructor Detail
-
Instance
public Instance(ClusterMergeHistory merges)
Constructor.- Parameters:
merges- Hierarchical result
-
-
Method Detail
-
run
public Clustering<DendrogramModel> run()
Extract all clusters from the pi-lambda-representation.- Returns:
- Hierarchical clustering
-
addSingleton
private void addSingleton(SimplifiedHierarchyExtraction.TempCluster clus, int id, DBIDRef it, double dist, boolean asCluster)
Add a singleton object, as point or cluster.- Parameters:
clus- Current cluster.id- Object to adddist- DistanceasCluster- Add as cluster (or only as id)
-
toCluster
protected Cluster<DendrogramModel> toCluster(SimplifiedHierarchyExtraction.TempCluster temp, Clustering<DendrogramModel> clustering)
Make the cluster for the given object- Parameters:
temp- Current temporary clusterclustering- Parent clustering- Returns:
- Cluster
-
makeCluster
protected Cluster<DendrogramModel> makeCluster(int seq, double depth, DBIDs members)
Make the cluster for the given object- Parameters:
seq- Cluster sequence numberdepth- Linkage depthmembers- Member objects- Returns:
- Cluster
-
-