本文整理汇总了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);