edu.qut.cs.rcmd.core.alg.tidal.impl
Class TidalTrustItemSimilarity
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TidalTrustItemSimilarity
public TidalTrustItemSimilarity(com.tinkerpop.blueprints.pgm.Graph itemSimilarityGraph,
double similarityCutOff)
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.