Package smile.clustering.linkage
Class UPGMCLinkage
- java.lang.Object
-
- smile.clustering.linkage.Linkage
-
- smile.clustering.linkage.UPGMCLinkage
-
public class UPGMCLinkage extends Linkage
Unweighted Pair Group Method using Centroids (also known as centroid linkage). The distance between two clusters is the Euclidean distance between their centroids, as calculated by arithmetic mean. Only valid for Euclidean distance based proximity matrix.- Author:
- Haifeng Li
-
-
Constructor Summary
Constructors Constructor Description UPGMCLinkage(double[][] proximity)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
merge(int i, int j)
Merge two clusters into one and update the proximity matrix.java.lang.String
toString()
-