|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UserCorrelation
Implementations of this interface define a notion of itemCorrelation between two
Users. Implementations should return values in the range -1.0 to 1.0, with
1.0 representing perfect correlation.
ItemCorrelation| Method Summary | |
|---|---|
void |
setPreferenceInferrer(PreferenceInferrer inferrer)
Attaches a PreferenceInferrer to the UserCorrelation implementation. |
double |
userCorrelation(User user1,
User user2)
Returns the "itemCorrelation", or degree of similarity, of two Users, based
on the their preferences. |
| Methods inherited from interface com.planetj.taste.common.Refreshable |
|---|
refresh |
| Method Detail |
|---|
double userCorrelation(User user1,
User user2)
throws TasteException
Returns the "itemCorrelation", or degree of similarity, of two Users, based
on the their preferences.
user1 - first useruser2 - second user
TasteException - if an error occurs while accessing the datavoid setPreferenceInferrer(PreferenceInferrer inferrer)
Attaches a PreferenceInferrer to the UserCorrelation implementation.
inferrer - PreferenceInferrer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||