DataType
- 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="Looks fine.") public class ClusterCentroidDivergenceFunction<DataType> extends AbstractClusterToClusterDivergenceFunction<CentroidCluster<DataType>,DataType>
divergenceFunction
Constructor and Description |
---|
ClusterCentroidDivergenceFunction()
Creates a new instance of ClusterCompleteLinkDivergenceFunction.
|
ClusterCentroidDivergenceFunction(DivergenceFunction<? super DataType,? super DataType> divergenceFunction)
Creates a new instance of ClusterCompleteLinkDivergenceFunction using
the given divergence function for elements.
|
Modifier and Type | Method and Description |
---|---|
double |
evaluate(CentroidCluster<DataType> from,
CentroidCluster<DataType> to)
This method computes the complete link distance between the two given
Clusters.
|
clone, getDivergenceFunction, setDivergenceFunction
public ClusterCentroidDivergenceFunction()
public ClusterCentroidDivergenceFunction(DivergenceFunction<? super DataType,? super DataType> divergenceFunction)
divergenceFunction
- The divergence function for elements.public double evaluate(CentroidCluster<DataType> from, CentroidCluster<DataType> to)
from
- The first Cluster.to
- The second Cluster.