smile.clustering.linkage
Class WPGMALinkage
- java.lang.Object
-
- smile.clustering.linkage.Linkage
-
- smile.clustering.linkage.WPGMALinkage
-
public class WPGMALinkage extends Linkage
Weighted Pair Group Method with Arithmetic mean. WPGMA down-weights the largest group by giving equal weights to the two branches of the dendrogram that are about to fuse.Note that the terms weighted and unweighted refer to the final result, not the math by which it is achieved. Thus the simple averaging in WPGMA produces a weighted result, and the proportional averaging in UPGMA produces an unweighted result.
-
-
Constructor Summary
Constructors Constructor and Description WPGMALinkage(double[][] proximity)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidmerge(int i, int j)Merge two clusters into one and update the proximity matrix.java.lang.StringtoString()
-
-
-
Constructor Detail
-
WPGMALinkage
public WPGMALinkage(double[][] proximity)
Constructor.- Parameters:
proximity- the proximity matrix to store the distance measure of dissimilarity. To save space, we only need the lower half of matrix.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG