public abstract class AbstractCutDendrogram.Instance
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<ModifiableDBIDs> |
cluster_dbids
Storage for cluster contents
|
protected ArrayModifiableDBIDs |
cluster_leads
Cluster lead objects
|
protected WritableIntegerDataStore |
cluster_map
Map clusters to integer cluster numbers.
|
protected DoubleArray |
clusterHeight
Cluster distances
|
protected ArrayDBIDs |
ids
Unordered IDs
|
protected DoubleDataStore |
lambda
Merge distance
|
protected DBIDDataStore |
pi
Parent pointer
|
protected PointerHierarchyRepresentationResult |
pointerresult
The hierarchical result to process.
|
| Constructor and Description |
|---|
Instance(PointerHierarchyRepresentationResult pointerresult)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private Clustering<DendrogramModel> |
buildFlat(DBIDArrayIter it,
int split,
FiniteProgress progress)
Build a flat clustering.
|
private Clustering<DendrogramModel> |
buildHierarchical(DBIDArrayIter it,
int split,
FiniteProgress progress)
Build a hierarchical clustering.
|
private void |
buildLeafClusters(DBIDArrayIter it,
int split,
FiniteProgress progress)
Prepare the leaf clusters by executing the first (size - 1 - split)
merges.
|
Clustering<DendrogramModel> |
extractClusters()
Extract all clusters from the pi-lambda-representation.
|
protected abstract int |
findSplit(DBIDArrayIter it)
Find the splitting point in the ordered DBIDs list.
|
protected Cluster<DendrogramModel> |
makeCluster(DBIDRef lead,
double depth,
DBIDs members)
Make the cluster for the given object
|
protected ArrayDBIDs ids
protected DBIDDataStore pi
protected DoubleDataStore lambda
protected PointerHierarchyRepresentationResult pointerresult
protected WritableIntegerDataStore cluster_map
protected java.util.ArrayList<ModifiableDBIDs> cluster_dbids
protected DoubleArray clusterHeight
protected ArrayModifiableDBIDs cluster_leads
public Instance(PointerHierarchyRepresentationResult pointerresult)
pointerresult - Hierarchical resultpublic Clustering<DendrogramModel> extractClusters()
private void buildLeafClusters(DBIDArrayIter it, int split, FiniteProgress progress)
it - Iteratorsplit - Splitting pointprogress - Progress for logging (may be null)private Clustering<DendrogramModel> buildFlat(DBIDArrayIter it, int split, FiniteProgress progress)
it - Ordered iteratorsplit - Splitting pointprogress - Progress for logging (may be null)private Clustering<DendrogramModel> buildHierarchical(DBIDArrayIter it, int split, FiniteProgress progress)
it - Iteratorsplit - Splitting pointprogress - Progress for logging (may be null)protected abstract int findSplit(DBIDArrayIter it)
it - Iterator on this list (reused)protected Cluster<DendrogramModel> makeCluster(DBIDRef lead, double depth, DBIDs members)
lead - Leading objectdepth - Linkage depthmembers - Member objectsCopyright © 2019 ELKI Development Team. License information.