ClusterType
- Type of Cluster<DataType>
used in the
learn()
method.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={"Cleaned up javadoc a little bit with code annotations.","Otherwise, looks fine."}) public interface FixedClusterInitializer<ClusterType extends Cluster<DataType>,DataType>
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<ClusterType> |
initializeClusters(int numClusters,
java.util.Collection<? extends DataType> elements)
Initializes a given number of clusters from the given elements.
|
java.util.ArrayList<ClusterType> initializeClusters(int numClusters, java.util.Collection<? extends DataType> elements)
numClusters
- The number of clusters to create.elements
- The elements to create the clusters from.java.lang.IllegalArgumentException
- If numClusters is less than 0.java.lang.NullPointerException
- If elements is null.