|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.algo.ClustersBuilder.DefClusters<T>
private static class ClustersBuilder.DefClusters<T>
Field Summary | |
---|---|
private java.util.List<SimilarityCluster<T>> |
clusters
|
private java.util.Map<T,float[]> |
itemScores
|
Constructor Summary | |
---|---|
private |
ClustersBuilder.DefClusters()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List<SimilarityCluster<T>> clusters
private java.util.Map<T,float[]> itemScores
Constructor Detail |
---|
private ClustersBuilder.DefClusters()
Method Detail |
---|
public float getScore(T item, int clusterIndex)
getScore
in interface Clusters<T>
item
- the item whose score we wantclusterIndex
- the index of the cluster containing the relevant centroid
public int size()
size
in interface Clusters<T>
public int itemCount()
itemCount
in interface Clusters<T>
public java.lang.Iterable<T> items()
items
in interface Clusters<T>
public java.lang.Iterable<? extends Cluster<T>> clusters()
clusters
in interface Clusters<T>
public Cluster<T> getCluster(int index)
getCluster
in interface Clusters<T>
index
- the index of the cluster
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |