public class TopNRecommender<T> extends java.lang.Object implements IRecommender<T>
| Constructor and Description |
|---|
TopNRecommender(RecommenderRatingDatabase<T> ratingDatabase,
int numRecommendations)
Constructs a new
TopNRecommender using the given rating data
base. |
| Modifier and Type | Method and Description |
|---|---|
UnmodifiableSet<Recommendation<T>> |
recommend(IRecommenderUser user)
Computes a set of recommendations for the given user
|
public TopNRecommender(RecommenderRatingDatabase<T> ratingDatabase, int numRecommendations)
TopNRecommender using the given rating data
base. There have to be at least numRecommendations entries in the data
base.public UnmodifiableSet<Recommendation<T>> recommend(IRecommenderUser user)
recommend in interface IRecommender<T>