|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimTrust<K>
Implementations of this interface define a notion of the trust value between two users and the trust value is calculated based on the similarity of their user profiles. Implementations should return values in the range of 0 to 1.0, with 1.0 representing perfect similarity.
Method Summary | |
---|---|
double |
trustValue(Map<K,Map<K,Double>> userProfile1,
Map<K,Map<K,Double>> userProfile2)
Calculate the trust value from the first user to the second user |
Method Detail |
---|
double trustValue(Map<K,Map<K,Double>> userProfile1, Map<K,Map<K,Double>> userProfile2)
userProfile1
- The user profile of user1userProfile2
- The user profile of user2
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |