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 ClusterCompleteLinkDivergenceFunction<ClusterType extends Cluster<DataType>,DataType> extends AbstractClusterToClusterDivergenceFunction<ClusterType,DataType>
divergenceFunction
Constructor and Description |
---|
ClusterCompleteLinkDivergenceFunction()
Creates a new instance of ClusterCompleteLinkDivergenceFunction.
|
ClusterCompleteLinkDivergenceFunction(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(ClusterType from,
ClusterType to)
This method computes the complete link distance between the two given
Clusters.
|
clone, getDivergenceFunction, setDivergenceFunction
public ClusterCompleteLinkDivergenceFunction()
public ClusterCompleteLinkDivergenceFunction(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.