edu.qut.cs.rcmd.core.alg.jaccard.impl
Class JaccardTrustImpl<T>

java.lang.Object
  extended by edu.qut.cs.rcmd.core.alg.jaccard.impl.JaccardTrustImpl<T>
All Implemented Interfaces:
JaccardTrust<T>

public class JaccardTrustImpl<T>
extends Object
implements JaccardTrust<T>

Basic implementation of the SimTrust interface


Constructor Summary
JaccardTrustImpl()
          Default Constructor
 
Method Summary
 double trustValue(Set<T> user1TaggedItems, Set<T> user2TaggedItems)
          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

JaccardTrustImpl

public JaccardTrustImpl()
Default Constructor

Method Detail

trustValue

public double trustValue(Set<T> user1TaggedItems,
                         Set<T> user2TaggedItems)
Description copied from interface: JaccardTrust
Calculate the trust value from the first user to the second user

Specified by:
trustValue in interface JaccardTrust<T>
Parameters:
user1TaggedItems - The set of items tagged by user1
user2TaggedItems - The set of items tagged by user2
Returns:
The trust value from user1 to user2


Copyright © 2012. All Rights Reserved.