Package elki.clustering.hierarchical
Class Anderberg<O>
- java.lang.Object
-
- elki.clustering.hierarchical.AGNES<O>
-
- elki.clustering.hierarchical.Anderberg<O>
-
- Type Parameters:
O- Object type
- All Implemented Interfaces:
elki.Algorithm,HierarchicalClusteringAlgorithm
@Reference(authors="M. R. Anderberg", title="Hierarchical Clustering Methods", booktitle="Cluster Analysis for Applications", bibkey="books/academic/Anderberg73/Ch6") @Priority(200) public class Anderberg<O> extends AGNES<O>This is a modification of the classic AGNES algorithm for hierarchical clustering using a nearest-neighbor heuristic for acceleration.Instead of scanning the matrix (with cost O(n²)) to find the minimum, the nearest neighbor of each object is remembered. On the downside, we need to check these values at every merge, and it may now cost O(n²) to perform a merge, so there is no worst-case advantage to this approach. The average case however improves from O(n³) to O(n²), which yields a considerable improvement in running time.
This optimization is attributed to M. R. Anderberg.
Reference:
M. R. Anderberg
Hierarchical Clustering Methods
Cluster Analysis for Applications
ISBN: 0120576503- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnderberg.InstanceMain worker instance of Anderberg's algorithm.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description elki.data.type.TypeInformation[]getInputTypeRestriction()ClusterMergeHistoryrun(elki.database.relation.Relation<O> relation)Run the algorithm-
Methods inherited from class elki.clustering.hierarchical.AGNES
initializeDistanceMatrix
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.clustering.hierarchical.HierarchicalClusteringAlgorithm
autorun
-
-
-
-
Method Detail
-
run
public ClusterMergeHistory run(elki.database.relation.Relation<O> relation)
Description copied from class:AGNESRun the algorithm
-
getInputTypeRestriction
public elki.data.type.TypeInformation[] getInputTypeRestriction()
- Specified by:
getInputTypeRestrictionin interfaceelki.Algorithm- Overrides:
getInputTypeRestrictionin classAGNES<O>
-
-