com.planetj.taste.recommender
Interface ClusteringRecommender

All Superinterfaces:
Recommender, Refreshable
All Known Implementing Classes:
TreeClusteringRecommender, TreeClusteringRecommender2

public interface ClusteringRecommender
extends Recommender

Interface implemented by "clustering" recommenders.

Since:
1.1
Author:
Sean Owen

Method Summary
 java.util.Collection<User> getCluster(java.lang.Object userID)
          Returns the cluster of users to which the given User, denoted by user ID, belongs.
 java.util.Collection<java.util.Collection<User>> getClusters()
          Returns all clusters of users.
 
Methods inherited from interface com.planetj.taste.recommender.Recommender
estimatePreference, getDataModel, recommend, recommend, removePreference, setPreference
 
Methods inherited from interface com.planetj.taste.common.Refreshable
refresh
 

Method Detail

getCluster

@NotNull
java.util.Collection<User> getCluster(java.lang.Object userID)
                                      throws TasteException

Returns the cluster of users to which the given User, denoted by user ID, belongs.

Parameters:
userID - user ID for which to find a cluster
Returns:
Collection of Users in the requested user's cluster
Throws:
TasteException - if an error occurs while accessing the DataModel
Since:
1.1.1

getClusters

@NotNull
java.util.Collection<java.util.Collection<User>> getClusters()
                                                             throws TasteException

Returns all clusters of users.

Returns:
Collection of Collections of Users
Throws:
TasteException - if an error occurs while accessing the DataModel
Since:
1.7