edu.qut.cs.rcmd.core.alg.simtrust.impl
Class FastSimTrustImpl<K>

java.lang.Object
  extended by edu.qut.cs.rcmd.core.alg.simtrust.impl.FastSimTrustImpl<K>
All Implemented Interfaces:
SimTrust<K>

public class FastSimTrustImpl<K>
extends Object
implements SimTrust<K>

Basic implementation of the SimTrust interface


Constructor Summary
FastSimTrustImpl()
          Default Constructor
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastSimTrustImpl

public FastSimTrustImpl()
Default Constructor

Method Detail

trustValue

public double trustValue(Map<K,Map<K,Double>> userProfile1,
                         Map<K,Map<K,Double>> userProfile2)
Description copied from interface: SimTrust
Calculate the trust value from the first user to the second user

Specified by:
trustValue in interface SimTrust<K>
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.