smile.clustering.linkage
Class WPGMCLinkage
- java.lang.Object
-
- smile.clustering.linkage.Linkage
-
- smile.clustering.linkage.WPGMCLinkage
-
public class WPGMCLinkage extends Linkage
Weighted Pair Group Method using Centroids (also known as median linkage). The distance between two clusters is the Euclidean distance between their weighted centroids. Only valid for Euclidean distance based proximity matrix.
-
-
Constructor Summary
Constructors Constructor and Description WPGMCLinkage(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
-
WPGMCLinkage
public WPGMCLinkage(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