Package com.chemaxon.clustering.wards
Class LanceWilliamsMerges.Wards
java.lang.Object
com.chemaxon.clustering.wards.LanceWilliamsMerges.Wards
- All Implemented Interfaces:
LanceWilliamsMerge
- Enclosing class:
- LanceWilliamsMerges
Ward's minimum variance clustering.
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Wards
public Wards()
-
-
Method Details
-
dijk
public double dijk(int ni, int nj, int nk, double dij, double dik, double djk) Description copied from interface:LanceWilliamsMerge
Returns the distance of cluster k and the cluster resulted from merging cluster i and j.- Specified by:
dijk
in interfaceLanceWilliamsMerge
- 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
-
toString
-