ClusterType - DataType - public class WithinClusterDivergenceWrapper<ClusterType extends Cluster<DataType>,DataType> extends java.lang.Object implements WithinClusterDivergence<ClusterType,DataType>
ClusterDivergenceFunction by summing the
divergence of each point to its cluster.| Modifier and Type | Field and Description |
|---|---|
protected DivergenceFunction<? super ClusterType,? super DataType> |
divergenceFunction
The divergence function.
|
| Constructor and Description |
|---|
WithinClusterDivergenceWrapper(DivergenceFunction<? super ClusterType,? super DataType> divergenceFunction)
Creates a new
WithinClusterDivergenceWrapper. |
| Modifier and Type | Method and Description |
|---|---|
CloneableSerializable |
clone()
Creates a new clone (shallow copy) of this object.
|
double |
evaluate(ClusterType cluster)
Evaluates the divergence within a cluster.
|
protected DivergenceFunction<? super ClusterType extends Cluster<DataType>,? super DataType> divergenceFunction
public WithinClusterDivergenceWrapper(DivergenceFunction<? super ClusterType,? super DataType> divergenceFunction)
WithinClusterDivergenceWrapper.divergenceFunction - The divergence function to use.public double evaluate(ClusterType cluster)
WithinClusterDivergenceevaluate in interface WithinClusterDivergence<ClusterType extends Cluster<DataType>,DataType>cluster - Cluster to evaluate the divergence for.public CloneableSerializable clone()
CloneableSerializableclone in interface CloneableSerializableclone in class java.lang.Object