|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.mff.ksi.jinfer.twostep.clustering.Cluster<T>
public class Cluster<T>
Class representing one cluster. Holds all members and representative.
Constructor Summary | |
---|---|
Cluster()
Initialize with no representative and no members. |
|
Cluster(T representant)
Initialize with one member. |
Method Summary | |
---|---|
void |
add(T item)
Add item to cluster. |
Set<T> |
getMembers()
Get members. |
T |
getRepresentant()
Get representative. |
Boolean |
isMember(T item)
True if item is member of this cluster. |
void |
setRepresentant(T representant)
Set representative. |
int |
size()
Get cluster size. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Cluster()
public Cluster(T representant)
representant
- to be first member and representative as wellMethod Detail |
---|
public T getRepresentant()
public void setRepresentant(T representant)
representant
- the representative to setpublic Set<T> getMembers()
public Boolean isMember(T item)
item
- item to test
public void add(T item)
item
- item to add.public int size()
public String toString()
toString
in class Object
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |