anl.aida.algo
Interface Clusters<T>

All Known Implementing Classes:
ClustersBuilder.DefClusters

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

getScore

float getScore(T item,
               int clusterIndex)
Gets the similarity score of the specified item with the specified cluster centriod.

Parameters:
item - the item whose score we want
clusterIndex - the index of the cluster containing the relevant centroid
Returns:
the similarity score of the specified item with the specified cluster centriod.

size

int size()
Gets the number of clusters in this collection.

Returns:
the number of clusters in this collection.

itemCount

int itemCount()
Gets the total number of clustered items.

Returns:
the total number of clustered items.

items

java.lang.Iterable<T> items()
Gets an iterable over all the clustered items in this collection. Each item is contained by one or more clusters.

Returns:
an iterable over all the clustered items in this collection.

clusters

java.lang.Iterable<? extends Cluster<T>> clusters()
Gets an iterable over all the Clusters contained by this collection.

Returns:
an iterable over all the Clusters contained by this collection.

getCluster

Cluster<T> getCluster(int index)
Gets the cluster at the specified index.

Parameters:
index - the index of the cluster
Returns:
the cluster at the specified index.