at.tuwien.ifs.somtoolbox.clustering
Class Cluster<E>

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.clustering.Cluster<E>
All Implemented Interfaces:
Iterable<E>
Direct Known Subclasses:
HierarchicalCluster

public class Cluster<E>
extends Object
implements Iterable<E>


Field Summary
static String CONTENT_SEPARATOR_CHAR
           
protected  List<E> data
           
protected  String label
           
 
Constructor Summary
protected Cluster()
           
  Cluster(E datum)
           
  Cluster(E datum, String label)
           
  Cluster(List<E> data)
           
  Cluster(List<E> data, String label)
           
 
Method Summary
 String contentToString()
           
 E get(int index)
           
 List<E> getData()
           
 String getLabel()
           
 Iterator<E> iterator()
           
 void setLabel(String label)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_SEPARATOR_CHAR

public static final String CONTENT_SEPARATOR_CHAR
See Also:
Constant Field Values

data

protected List<E> data

label

protected String label
Constructor Detail

Cluster

protected Cluster()

Cluster

public Cluster(E datum)

Cluster

public Cluster(E datum,
               String label)

Cluster

public Cluster(List<E> data)

Cluster

public Cluster(List<E> data,
               String label)
Method Detail

get

public E get(int index)

getData

public List<E> getData()

getLabel

public String getLabel()

setLabel

public void setLabel(String label)

iterator

public Iterator<E> iterator()
Specified by:
iterator in interface Iterable<E>

size

public int size()

contentToString

public String contentToString()