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