public abstract class AbstractCutDendrogram extends java.lang.Object implements ClusteringAlgorithm<Clustering<DendrogramModel>>
Modifier and Type | Class and Description |
---|---|
class |
AbstractCutDendrogram.Instance
Instance for a single data set.
|
static class |
AbstractCutDendrogram.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
protected HierarchicalClusteringAlgorithm |
algorithm
Clustering algorithm to run to obtain the hierarchy.
|
protected boolean |
hierarchical
Include empty clusters in the hierarchy produced.
|
Constructor and Description |
---|
AbstractCutDendrogram(HierarchicalClusteringAlgorithm algorithm,
boolean hierarchical)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TypeInformation[] |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
protected abstract Logging |
getLogger() |
Clustering<DendrogramModel> |
run(Database database)
Runs the algorithm.
|
abstract Clustering<DendrogramModel> |
run(PointerHierarchyRepresentationResult pointerresult)
Process a pointer hierarchy result.
|
protected final boolean hierarchical
protected final HierarchicalClusteringAlgorithm algorithm
public AbstractCutDendrogram(HierarchicalClusteringAlgorithm algorithm, boolean hierarchical)
algorithm
- Algorithmhierarchical
- Extract hierarchical resultpublic Clustering<DendrogramModel> run(Database database)
Algorithm
run
in interface Algorithm
run
in interface ClusteringAlgorithm<Clustering<DendrogramModel>>
database
- the database to run the algorithm onpublic abstract Clustering<DendrogramModel> run(PointerHierarchyRepresentationResult pointerresult)
pointerresult
- Hierarchical result in pointer representation.public TypeInformation[] getInputTypeRestriction()
Algorithm
getInputTypeRestriction
in interface Algorithm
protected abstract Logging getLogger()
Copyright © 2019 ELKI Development Team. License information.