DataType
- The algorithm operates on a Collection of DataType, so
DataType will be something like Vector or String@CodeReview(reviewer="Kevin R. Dixon", date="2008-07-22", changesNeeded=false, comments="Code generally looks fine.") public class MedoidClusterCreator<DataType> extends DefaultDivergenceFunctionContainer<DataType,DataType> implements ClusterCreator<CentroidCluster<DataType>,DataType>
MedoidClusterCreator
class creates a
CentroidCluster
at the sample that minimizes the sum
of the divergence to the objects assigned to the cluster.divergenceFunction
Constructor and Description |
---|
MedoidClusterCreator()
Creates a new instance of MedoidClusterCreator
|
MedoidClusterCreator(DivergenceFunction<? super DataType,? super DataType> divergenceFunction)
Creates a new instance of MedoidClusterCreator
|
Modifier and Type | Method and Description |
---|---|
CentroidCluster<DataType> |
createCluster(java.util.Collection<? extends DataType> members)
Creates a CentroidCluster at the member that minimizes the sum of
divergence between all members
|
clone, getDivergenceFunction, setDivergenceFunction
public MedoidClusterCreator()
public MedoidClusterCreator(DivergenceFunction<? super DataType,? super DataType> divergenceFunction)
divergenceFunction
- Divergence function used to evaluate the dissimilarity between
two data pointspublic CentroidCluster<DataType> createCluster(java.util.Collection<? extends DataType> members)
createCluster
in interface ClusterCreator<CentroidCluster<DataType>,DataType>
members
- Data points that have been assigned to the cluster