edu.qut.cs.rcmd.core.alg.simtrust.impl
Class SimTrustUserSimilarity

java.lang.Object
  extended by edu.qut.cs.rcmd.core.alg.simtrust.impl.SimTrustUserSimilarity
All Implemented Interfaces:
org.apache.mahout.cf.taste.common.Refreshable, org.apache.mahout.cf.taste.similarity.UserSimilarity

public class SimTrustUserSimilarity
extends Object
implements org.apache.mahout.cf.taste.similarity.UserSimilarity

Implementation of the UserSimilarity interface using SimTrust algorithm


Constructor Summary
SimTrustUserSimilarity(TagRepresentationProvider tagRepresentationProvider)
          Constructor
 
Method Summary
 void refresh(Collection<org.apache.mahout.cf.taste.common.Refreshable> alreadyRefreshed)
           
 void setPreferenceInferrer(org.apache.mahout.cf.taste.similarity.PreferenceInferrer inferrer)
           
 double userSimilarity(long userID1, long userID2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimTrustUserSimilarity

public SimTrustUserSimilarity(TagRepresentationProvider tagRepresentationProvider)
Constructor

Parameters:
tagRepresentationProvider - The provider for tag representations
Method Detail

refresh

public void refresh(Collection<org.apache.mahout.cf.taste.common.Refreshable> alreadyRefreshed)
Specified by:
refresh in interface org.apache.mahout.cf.taste.common.Refreshable

userSimilarity

public double userSimilarity(long userID1,
                             long userID2)
                      throws org.apache.mahout.cf.taste.common.TasteException
Specified by:
userSimilarity in interface org.apache.mahout.cf.taste.similarity.UserSimilarity
Throws:
org.apache.mahout.cf.taste.common.TasteException

setPreferenceInferrer

public void setPreferenceInferrer(org.apache.mahout.cf.taste.similarity.PreferenceInferrer inferrer)
Specified by:
setPreferenceInferrer in interface org.apache.mahout.cf.taste.similarity.UserSimilarity


Copyright © 2012. All Rights Reserved.