Class CutDendrogramByNumberOfClusters
- java.lang.Object
-
- elki.clustering.hierarchical.extraction.AbstractCutDendrogram
-
- elki.clustering.hierarchical.extraction.CutDendrogramByNumberOfClusters
-
- All Implemented Interfaces:
Algorithm
,ClusteringAlgorithm<Clustering<DendrogramModel>>
public class CutDendrogramByNumberOfClusters 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
CutDendrogramByNumberOfClusters.Instance
Instance for a single data set.static class
CutDendrogramByNumberOfClusters.Par
Parameterization class.-
Nested classes/interfaces inherited from interface elki.Algorithm
Algorithm.Utils
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static Logging
LOG
Class logger.private int
minclusters
Minimum number of clusters to extract-
Fields inherited from class elki.clustering.hierarchical.extraction.AbstractCutDendrogram
algorithm, hierarchical, simplify
-
-
Constructor Summary
Constructors Constructor Description CutDendrogramByNumberOfClusters(HierarchicalClusteringAlgorithm algorithm, int minclusters, boolean hierarchical)
Constructor.CutDendrogramByNumberOfClusters(HierarchicalClusteringAlgorithm algorithm, int minclusters, 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
static final Logging LOG
Class logger.
-
minclusters
private final int minclusters
Minimum number of clusters to extract
-
-
Constructor Detail
-
CutDendrogramByNumberOfClusters
public CutDendrogramByNumberOfClusters(HierarchicalClusteringAlgorithm algorithm, int minclusters, boolean hierarchical)
Constructor.- Parameters:
algorithm
- Algorithm to runminclusters
- Minimum number of clustershierarchical
- Produce a hierarchical output
-
CutDendrogramByNumberOfClusters
public CutDendrogramByNumberOfClusters(HierarchicalClusteringAlgorithm algorithm, int minclusters, boolean hierarchical, boolean simplify)
Constructor.- Parameters:
algorithm
- Algorithm to runminclusters
- Minimum number of clustershierarchical
- 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
-
-