edu.qut.cs.rcmd.core.alg.simtrust
Interface SimTrust<K>

All Known Implementing Classes:
FastSimTrustImpl, SimTrustImpl

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

trustValue

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

Parameters:
userProfile1 - The user profile of user1
userProfile2 - The user profile of user2
Returns:
The trust value from user1 to user2


Copyright © 2012. All Rights Reserved.