edu.qut.cs.rcmd.core.common.similarity
Class UserSimilarityAdapter

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

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


Field Summary
protected  org.apache.mahout.cf.taste.similarity.UserSimilarity delegate
           
 
Constructor Summary
protected UserSimilarityAdapter(org.apache.mahout.cf.taste.similarity.UserSimilarity delegate)
           
 
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
 

Field Detail

delegate

protected final org.apache.mahout.cf.taste.similarity.UserSimilarity delegate
Constructor Detail

UserSimilarityAdapter

protected UserSimilarityAdapter(org.apache.mahout.cf.taste.similarity.UserSimilarity delegate)
Method Detail

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

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

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.