|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cluster<T>
Interface for a Cluster as produced from a Clustering algorithm. The cluster should contain items of type T.
Method Summary | |
---|---|
float[] |
getCentroid()
Gets the vector for the cluster centroid. |
java.lang.String |
getCentroidLabel()
Gets the label for this cluster. |
int |
getItemCount()
The number of items in this cluster. |
float |
getSimilarity(T item)
Gets the similarity score of the specified item with the centroid of this cluster. |
java.lang.Iterable<anl.aida.util.ObjScore<T>> |
items()
Gets an iterable over all the items and score in this cluster. |
Method Detail |
---|
java.lang.String getCentroidLabel()
int getItemCount()
float[] getCentroid()
float getSimilarity(T item)
item
- the item whose score we want
java.lang.Iterable<anl.aida.util.ObjScore<T>> items()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |