public class NormalizedCentroidClusterCreator extends AbstractCloneableSerializable implements IncrementalClusterCreator<NormalizedCentroidCluster<Vectorizable>,Vectorizable>
NormalizedCentroidCluster
s which are clusters
that have a normalized centroid in addition to the usual centroid. The
normalized centroid is the centroid formed from normalizing each member of
the cluster to have unit length.Constructor and Description |
---|
NormalizedCentroidClusterCreator()
Creates a new instance of VectorizableCentroidClusterCreator()
|
Modifier and Type | Method and Description |
---|---|
void |
addClusterMember(NormalizedCentroidCluster<Vectorizable> cluster,
Vectorizable member)
Adds a member to the given cluster.
|
NormalizedCentroidCluster<Vectorizable> |
createCluster()
Creates a new, empty cluster.
|
NormalizedCentroidCluster<Vectorizable> |
createCluster(java.util.Collection<? extends Vectorizable> members)
Create a new cluster from the given members of that cluster.
|
boolean |
removeClusterMember(NormalizedCentroidCluster<Vectorizable> cluster,
Vectorizable member)
Removes a member from the given cluster.
|
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
public NormalizedCentroidClusterCreator()
public NormalizedCentroidCluster<Vectorizable> createCluster()
IncrementalClusterCreator
createCluster
in interface IncrementalClusterCreator<NormalizedCentroidCluster<Vectorizable>,Vectorizable>
public NormalizedCentroidCluster<Vectorizable> createCluster(java.util.Collection<? extends Vectorizable> members)
ClusterCreator
createCluster
in interface ClusterCreator<NormalizedCentroidCluster<Vectorizable>,Vectorizable>
members
- The members of the cluster.public void addClusterMember(NormalizedCentroidCluster<Vectorizable> cluster, Vectorizable member)
IncrementalClusterCreator
addClusterMember
in interface IncrementalClusterCreator<NormalizedCentroidCluster<Vectorizable>,Vectorizable>
cluster
- The cluster to add a member to.member
- The member to add to the cluster.public boolean removeClusterMember(NormalizedCentroidCluster<Vectorizable> cluster, Vectorizable member)
IncrementalClusterCreator
removeClusterMember
in interface IncrementalClusterCreator<NormalizedCentroidCluster<Vectorizable>,Vectorizable>
cluster
- The cluster to remove the member from.member
- The member to remove.