Class CutDendrogramByHeight
- java.lang.Object
-
- elki.clustering.hierarchical.extraction.AbstractCutDendrogram
-
- elki.clustering.hierarchical.extraction.CutDendrogramByHeight
-
- All Implemented Interfaces:
Algorithm
,ClusteringAlgorithm<Clustering<DendrogramModel>>
public class CutDendrogramByHeight extends AbstractCutDendrogram implements ClusteringAlgorithm<Clustering<DendrogramModel>>
Extract a flat clustering from a full hierarchy, represented in pointer form.- Since:
- 0.7.5
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
CutDendrogramByHeight.Instance
Instance for a single data set.static class
CutDendrogramByHeight.Par
Parameterization class.-
Nested classes/interfaces inherited from interface elki.Algorithm
Algorithm.Utils
-
-
Field Summary
Fields Modifier and Type Field Description private static Logging
LOG
Class logger.private double
threshold
Threshold for extracting clusters.-
Fields inherited from class elki.clustering.hierarchical.extraction.AbstractCutDendrogram
algorithm, hierarchical, simplify
-
-
Constructor Summary
Constructors Constructor Description CutDendrogramByHeight(HierarchicalClusteringAlgorithm algorithm, double threshold, boolean hierarchical)
Constructor.CutDendrogramByHeight(HierarchicalClusteringAlgorithm algorithm, double threshold, boolean hierarchical, boolean simplify)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Logging
getLogger()
Clustering<DendrogramModel>
run(ClusterMergeHistory merges)
Process a pointer hierarchy result.-
Methods inherited from class elki.clustering.hierarchical.extraction.AbstractCutDendrogram
getInputTypeRestriction, run
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.Algorithm
getInputTypeRestriction
-
Methods inherited from interface elki.clustering.ClusteringAlgorithm
autorun
-
-
-
-
Field Detail
-
LOG
private static final Logging LOG
Class logger.
-
threshold
private final double threshold
Threshold for extracting clusters.
-
-
Constructor Detail
-
CutDendrogramByHeight
public CutDendrogramByHeight(HierarchicalClusteringAlgorithm algorithm, double threshold, boolean hierarchical)
Constructor.- Parameters:
algorithm
- Algorithm to runthreshold
- Distance thresholdhierarchical
- Produce a hierarchical output
-
CutDendrogramByHeight
public CutDendrogramByHeight(HierarchicalClusteringAlgorithm algorithm, double threshold, boolean hierarchical, boolean simplify)
Constructor.- Parameters:
algorithm
- Algorithm to runthreshold
- Distance thresholdhierarchical
- Produce a hierarchical outputsimplify
- Simplify by putting single points into merge clusters
-
-
Method Detail
-
run
public Clustering<DendrogramModel> run(ClusterMergeHistory merges)
Description copied from class:AbstractCutDendrogram
Process a pointer hierarchy result.- Specified by:
run
in classAbstractCutDendrogram
- Parameters:
merges
- Hierarchical result in pointer representation.- Returns:
- Clustering
-
getLogger
protected Logging getLogger()
- Specified by:
getLogger
in classAbstractCutDendrogram
-
-