public static class LanceWilliamsMerges.CompleteLinkage extends Object implements LanceWilliamsMerge
Constructor and Description |
---|
CompleteLinkage() |
Modifier and Type | Method and 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.
|
String |
toString() |
public double dijk(int ni, int nj, int nk, double dij, double dik, double djk)
LanceWilliamsMerge
dijk
in interface LanceWilliamsMerge
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