Package elki.clustering.hierarchical
Class ClusterPrototypeMergeHistory
- java.lang.Object
-
- elki.clustering.hierarchical.ClusterMergeHistory
-
- elki.clustering.hierarchical.ClusterPrototypeMergeHistory
-
public class ClusterPrototypeMergeHistory extends ClusterMergeHistory
Cluster merge history with additional cluster prototypes (for HACAM, MedoidLinkage, and MiniMax clustering)- Since:
- 0.8.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected ArrayDBIDsprototypesCluster prototypes
-
Constructor Summary
Constructors Constructor Description ClusterPrototypeMergeHistory(ArrayDBIDs ids, int[] merges, double[] distances, int[] sizes, boolean isSquared, ArrayDBIDs prototypes)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DBIDprototype(int i)Get the prototype of cluster i.-
Methods inherited from class elki.clustering.hierarchical.ClusterMergeHistory
assignVar, getDBIDs, getMergeA, getMergeB, getMergeHeight, getPositions, getSize, isSquared, numMerges, size
-
-
-
-
Field Detail
-
prototypes
protected ArrayDBIDs prototypes
Cluster prototypes
-
-
Constructor Detail
-
ClusterPrototypeMergeHistory
public ClusterPrototypeMergeHistory(ArrayDBIDs ids, int[] merges, double[] distances, int[] sizes, boolean isSquared, ArrayDBIDs prototypes)
Constructor.- Parameters:
ids- Initial object idsmerges- Merge history 2*(N-1) valuesdistances- Distancessizes- Cluster sizesisSquared- If distances are squared distancesprototypes- Cluster prototypes
-
-
Method Detail
-
prototype
public DBID prototype(int i)
Get the prototype of cluster i.- Parameters:
i- Merge number- Returns:
- Prototype
-
-