Package com.chemaxon.clustering.wards
Interface LanceWilliamsMerge
- All Known Implementing Classes:
LanceWilliamsMerges.AverageLinkage
,LanceWilliamsMerges.CompleteLinkage
,LanceWilliamsMerges.SingleLinkage
,LanceWilliamsMerges.Wards
Instances represent a cluster distance update for agglomerative clusterings.
Please note that this interface is marked with Beta
annotation, so it can be subject of incompatible
changes or removal in later releases.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
dijk
(int ni, int nj, int nk, double dij, double dik, double djk) Returns the distance of cluster k and the cluster resulted from merging cluster i and j.
-
Method Details
-
dijk
double dijk(int ni, int nj, int nk, double dij, double dik, double djk) Returns the distance of cluster k and the cluster resulted from merging cluster i and j.- Parameters:
ni
- Size of cluster i to be mergednj
- Size of cluster j to be mergednk
- Size of cluster kdij
- Distance of clusters i and jdik
- Distance of clusters i and kdjk
- Distance of clusters j and k- Returns:
- Distance of cluster k and cluster i-j merged
-