gov.sandia.cognition.learning.algorithm.clustering.cluster
Class DefaultClusterCreator<DataType>

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.learning.algorithm.clustering.cluster.DefaultClusterCreator<DataType>
Type Parameters:
DataType - The type of the data to put in the cluster.
All Implemented Interfaces:
ClusterCreator<DefaultCluster<DataType>,DataType>, CloneableSerializable, Serializable, Cloneable
Direct Known Subclasses:
DefaultIncrementalClusterCreator

public class DefaultClusterCreator<DataType>
extends AbstractCloneableSerializable
implements ClusterCreator<DefaultCluster<DataType>,DataType>

The DefaultClusterCreator class implements a default ClusterCreator that just creates a DefaultCluster from the given list of members.

Since:
2.1
Author:
Justin Basilico
See Also:
Serialized Form

Constructor Summary
DefaultClusterCreator()
          Creates a new DefaultClusterCreator.
 
Method Summary
 DefaultCluster<DataType> createCluster(Collection<DataType> members)
          Creates a new DefaultCluster from the given list of members.
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 

Constructor Detail

DefaultClusterCreator

public DefaultClusterCreator()
Creates a new DefaultClusterCreator.

Method Detail

createCluster

public DefaultCluster<DataType> createCluster(Collection<DataType> members)
Creates a new DefaultCluster from the given list of members.

Specified by:
createCluster in interface ClusterCreator<DefaultCluster<DataType>,DataType>
Parameters:
members - The cluster members.
Returns:
A new cluster from the given members.