jklustor-all-api-0.0.7-20140619012755 (ChemAxon)


com.chemaxon.clustering.wards
Interface LanceWilliamsMerge

All Known Implementing Classes:
LanceWilliamsMerges.AverageLinkage, LanceWilliamsMerges.CompleteLinkage, LanceWilliamsMerges.SingleLinkage, LanceWilliamsMerges.Wards

@Beta
public interface LanceWilliamsMerge

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.

Author:
Gabor Imre
See Also:
LanceWilliamsAlgorithm, http://en.wikipedia.org/wiki/Ward%27s_method#Lance.E2.80.93Williams_algorithms

Method Summary
 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.
 

Method Detail

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 merged
nj - Size of cluster j to be merged
nk - Size of cluster k
dij - Distance of clusters i and j
dik - Distance of clusters i and k
djk - Distance of clusters j and k
Returns:
Distance of cluster k and cluster i-j merged

jklustor-all-api-0.0.7-20140619012755 (ChemAxon)