Interface LanceWilliamsMerge

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

@Beta @PublicAPI 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.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    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 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 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