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

java.lang.Object
  extended by edu.qut.cs.rcmd.core.common.similarity.ItemSimilarityAdapter
All Implemented Interfaces:
org.apache.mahout.cf.taste.common.Refreshable, org.apache.mahout.cf.taste.similarity.ItemSimilarity
Direct Known Subclasses:
CandidateItemsStrategyBasedItemSimilarityAdapter

public class ItemSimilarityAdapter
extends Object
implements org.apache.mahout.cf.taste.similarity.ItemSimilarity


Field Summary
protected  org.apache.mahout.cf.taste.similarity.ItemSimilarity delegate
           
 
Constructor Summary
protected ItemSimilarityAdapter(org.apache.mahout.cf.taste.similarity.ItemSimilarity delegate)
           
 
Method Summary
 long[] allSimilarItemIDs(long itemID)
           
 double[] itemSimilarities(long itemID1, long[] itemID2s)
           
 double itemSimilarity(long itemID1, long itemID2)
           
 void refresh(Collection<org.apache.mahout.cf.taste.common.Refreshable> alreadyRefreshed)
           
 
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.ItemSimilarity delegate
Constructor Detail

ItemSimilarityAdapter

protected ItemSimilarityAdapter(org.apache.mahout.cf.taste.similarity.ItemSimilarity delegate)
Method Detail

itemSimilarity

public double itemSimilarity(long itemID1,
                             long itemID2)
                      throws org.apache.mahout.cf.taste.common.TasteException
Specified by:
itemSimilarity in interface org.apache.mahout.cf.taste.similarity.ItemSimilarity
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

itemSimilarities

public double[] itemSimilarities(long itemID1,
                                 long[] itemID2s)
                          throws org.apache.mahout.cf.taste.common.TasteException
Specified by:
itemSimilarities in interface org.apache.mahout.cf.taste.similarity.ItemSimilarity
Throws:
org.apache.mahout.cf.taste.common.TasteException

allSimilarItemIDs

public long[] allSimilarItemIDs(long itemID)
                         throws org.apache.mahout.cf.taste.common.TasteException
Specified by:
allSimilarItemIDs in interface org.apache.mahout.cf.taste.similarity.ItemSimilarity
Throws:
org.apache.mahout.cf.taste.common.TasteException


Copyright © 2012. All Rights Reserved.