edu.qut.cs.rcmd.core.alg.tidal.impl
Class TidalTrustItemSimilarity

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

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


Constructor Summary
TidalTrustItemSimilarity(com.tinkerpop.blueprints.pgm.Graph itemSimilarityGraph, double similarityCutOff)
           
 
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
 

Constructor Detail

TidalTrustItemSimilarity

public TidalTrustItemSimilarity(com.tinkerpop.blueprints.pgm.Graph itemSimilarityGraph,
                                double similarityCutOff)
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

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

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.