|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Clusters<T>
Date: Feb 16, 2009 11:56:53 AM
Method Summary | |
---|---|
java.lang.Iterable<? extends Cluster<T>> |
clusters()
Gets an iterable over all the Clusters contained by this collection. |
Cluster<T> |
getCluster(int index)
Gets the cluster at the specified index. |
float |
getScore(T item,
int clusterIndex)
Gets the similarity score of the specified item with the specified cluster centriod. |
int |
itemCount()
Gets the total number of clustered items. |
java.lang.Iterable<T> |
items()
Gets an iterable over all the clustered items in this collection. |
int |
size()
Gets the number of clusters in this collection. |
Method Detail |
---|
float getScore(T item, int clusterIndex)
item
- the item whose score we wantclusterIndex
- the index of the cluster containing the relevant centroid
int size()
int itemCount()
java.lang.Iterable<T> items()
java.lang.Iterable<? extends Cluster<T>> clusters()
Cluster<T> getCluster(int index)
index
- the index of the cluster
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |