com.rapidminer.operator.clustering
Class Cluster

java.lang.Object
  extended by com.rapidminer.operator.clustering.Cluster
All Implemented Interfaces:
java.io.Serializable

public class Cluster
extends java.lang.Object
implements java.io.Serializable

Represents an individual cluster, storing all examples by remembering their ids

Author:
Sebastian Land
See Also:
Serialized Form

Constructor Summary
Cluster(int clusterId)
           
 
Method Summary
 void assignExample(java.lang.Object exampleId)
           
 boolean containsExampleId(java.lang.Object id)
           
 int getClusterId()
          Get the id of the cluster.
 java.util.Collection<java.lang.Object> getExampleIds()
          Get all ids of the examples associated with this cluster.
 int getNumberOfExamples()
          Returns the number of examples in this cluster
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cluster

public Cluster(int clusterId)
Method Detail

getExampleIds

public java.util.Collection<java.lang.Object> getExampleIds()
Get all ids of the examples associated with this cluster.

Returns:
Iterator of String

containsExampleId

public boolean containsExampleId(java.lang.Object id)

getClusterId

public int getClusterId()
Get the id of the cluster.

Returns:
Object

getNumberOfExamples

public int getNumberOfExamples()
Returns the number of examples in this cluster

Returns:
number of examples

assignExample

public void assignExample(java.lang.Object exampleId)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2009 by Rapid-I