
O - Object type@Reference(title="A Review of Classification", authors="R. M. Cormack", booktitle="Journal of the Royal Statistical Society. Series A, Vol. 134, No. 3", url="http://www.jstor.org/stable/2344237") public class NaiveAgglomerativeHierarchicalClustering4<O,D extends NumberDistance<D,?>> extends AbstractDistanceBasedAlgorithm<O,D,PointerHierarchyRepresentationResult<DoubleDistance>> implements HierarchicalClusteringAlgorithm<DoubleDistance>
SLINK for a much faster
 algorithm (however, only for single-linkage).
 
 Reference (for the update formulas):
 
 A Review of Classification
 R. M. Cormack
 Journal of the Royal Statistical Society. Series A, Vol. 134, No. 3
 
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
NaiveAgglomerativeHierarchicalClustering4.Linkage
Different linkage strategies. 
 | 
static class  | 
NaiveAgglomerativeHierarchicalClustering4.Parameterizer<O,D extends NumberDistance<D,?>>
Parameterization class 
 | 
| Modifier and Type | Field and Description | 
|---|---|
(package private) NaiveAgglomerativeHierarchicalClustering4.Linkage | 
linkage
Current linkage in use. 
 | 
private static Logging | 
LOG
Class logger 
 | 
DISTANCE_FUNCTION_ID| Constructor and Description | 
|---|
NaiveAgglomerativeHierarchicalClustering4(DistanceFunction<? super O,D> distanceFunction,
                                         NaiveAgglomerativeHierarchicalClustering4.Linkage linkage)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
DoubleDistance | 
getDistanceFactory()
Return the distance type that will be used by the algorithm. 
 | 
TypeInformation[] | 
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query. 
 | 
protected Logging | 
getLogger()
Get the (STATIC) logger for this class. 
 | 
PointerHierarchyRepresentationResult<DoubleDistance> | 
run(Database db,
   Relation<O> relation)
Run the algorithm 
 | 
protected static int | 
triangleSize(int x)
Compute the size of a complete x by x triangle (minus diagonal) 
 | 
getDistanceFunctionmakeParameterDistanceFunction, runclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunprivate static final Logging LOG
NaiveAgglomerativeHierarchicalClustering4.Linkage linkage
public NaiveAgglomerativeHierarchicalClustering4(DistanceFunction<? super O,D> distanceFunction, NaiveAgglomerativeHierarchicalClustering4.Linkage linkage)
distanceFunction - Distance function to uselinkage - Linkage strategypublic PointerHierarchyRepresentationResult<DoubleDistance> run(Database db, Relation<O> relation)
db - Databaserelation - Relationprotected static int triangleSize(int x)
x - Offsetpublic TypeInformation[] getInputTypeRestriction()
AbstractAlgorithmgetInputTypeRestriction in interface AlgorithmgetInputTypeRestriction in class AbstractAlgorithm<PointerHierarchyRepresentationResult<DoubleDistance>>protected Logging getLogger()
AbstractAlgorithmgetLogger in class AbstractAlgorithm<PointerHierarchyRepresentationResult<DoubleDistance>>public DoubleDistance getDistanceFactory()
HierarchicalClusteringAlgorithmgetDistanceFactory in interface HierarchicalClusteringAlgorithm<DoubleDistance>