ClusterType - type of Cluster<DataType> used in the
learn() methodDataType - The algorithm operates on a Collection<DataType>,
so DataType will be something like Vector or String@CodeReview(reviewer="Kevin R. Dixon", date="2008-07-23", changesNeeded=false, comments={"Cleaned up javadoc a little bit with code annotations.","Otherwise, looks fine."}) public class ClusterSingleLinkDivergenceFunction<ClusterType extends Cluster<DataType>,DataType> extends AbstractClusterToClusterDivergenceFunction<ClusterType,DataType>
divergenceFunction| Constructor and Description |
|---|
ClusterSingleLinkDivergenceFunction()
Creates a new instance of ClusterSingleLinkDivergenceFunction.
|
ClusterSingleLinkDivergenceFunction(DivergenceFunction<? super DataType,? super DataType> divergenceFunction)
Creates a new instance of ClusterSingleLinkDivergenceFunction using
the given divergence function for elements.
|
| Modifier and Type | Method and Description |
|---|---|
double |
evaluate(ClusterType from,
ClusterType to)
This method computes the complete link distance between the two given
Clusters.
|
clone, getDivergenceFunction, setDivergenceFunctionpublic ClusterSingleLinkDivergenceFunction()
public ClusterSingleLinkDivergenceFunction(DivergenceFunction<? super DataType,? super DataType> divergenceFunction)
divergenceFunction - The divergence function for elements.public double evaluate(ClusterType from, ClusterType to)
from - The first Cluster.to - The second Cluster.