本文整理匯總了Java中org.easyrec.plugin.itemitem.store.dao.ActionDAO.RatedTogether類的典型用法代碼示例。如果您正苦於以下問題:Java RatedTogether類的具體用法?Java RatedTogether怎麽用?Java RatedTogether使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
RatedTogether類屬於org.easyrec.plugin.itemitem.store.dao.ActionDAO包,在下文中一共展示了RatedTogether類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getAverage1
import org.easyrec.plugin.itemitem.store.dao.ActionDAO.RatedTogether; //導入依賴的package包/類
@Override
protected double getAverage1(final RatedTogether<Integer, Integer> ratedTogether,
final Map<Integer, RatingVO<Integer, Integer>> averageRatings) {
return 0;
}
示例2: getAverage2
import org.easyrec.plugin.itemitem.store.dao.ActionDAO.RatedTogether; //導入依賴的package包/類
@Override
protected double getAverage2(final RatedTogether<Integer, Integer> ratedTogether,
final Map<Integer, RatingVO<Integer, Integer>> averageRatings) {
return 0;
}
示例3: getAverage1
import org.easyrec.plugin.itemitem.store.dao.ActionDAO.RatedTogether; //導入依賴的package包/類
@Override
protected double getAverage1(final RatedTogether<Integer, Integer> ratedTogether,
final Map<Integer, RatingVO<Integer, Integer>> averageRatings) {
return averageRatings.get(ratedTogether.getRating1().getUser()).getRatingValue();
}
示例4: getAverage2
import org.easyrec.plugin.itemitem.store.dao.ActionDAO.RatedTogether; //導入依賴的package包/類
@Override
protected double getAverage2(final RatedTogether<Integer, Integer> ratedTogether,
final Map<Integer, RatingVO<Integer, Integer>> averageRatings) {
return averageRatings.get(ratedTogether.getRating1().getUser()).getRatingValue();
}
示例5: getAverage1
import org.easyrec.plugin.itemitem.store.dao.ActionDAO.RatedTogether; //導入依賴的package包/類
@Override
protected double getAverage1(final RatedTogether<Integer, Integer> ratedTogether,
final Map<Integer, RatingVO<Integer, Integer>> averageRatings) {
return averageRatings.get(ratedTogether.getRating1().getItem().getItem()).getRatingValue();
}
示例6: getAverage2
import org.easyrec.plugin.itemitem.store.dao.ActionDAO.RatedTogether; //導入依賴的package包/類
@Override
protected double getAverage2(final RatedTogether<Integer, Integer> ratedTogether,
final Map<Integer, RatingVO<Integer, Integer>> averageRatings) {
return averageRatings.get(ratedTogether.getRating2().getItem().getItem()).getRatingValue();
}
示例7: getAverage1
import org.easyrec.plugin.itemitem.store.dao.ActionDAO.RatedTogether; //導入依賴的package包/類
/**
* Get x as defined in the class documentation.
*
* @param ratedTogether Two vector component of items to use for getting x.
* @param averageRatings The map precalculated by {@link #getAverageItemRatings(Integer, Integer)}.
* @return X.
*/
protected abstract double getAverage1(RatedTogether<Integer, Integer> ratedTogether,
Map<Integer, RatingVO<Integer, Integer>> averageRatings);
示例8: getAverage2
import org.easyrec.plugin.itemitem.store.dao.ActionDAO.RatedTogether; //導入依賴的package包/類
/**
* Get y as defined in the class documentation.
*
* @param ratedTogether Two vector component of items to use for getting y.
* @param averageRatings The map precalculated by {@link #getAverageItemRatings(Integer, Integer)}.
* @return Y.
*/
protected abstract double getAverage2(RatedTogether<Integer, Integer> ratedTogether,
Map<Integer, RatingVO<Integer, Integer>> averageRatings);