当前位置: 首页>>代码示例>>Java>>正文


Java RatedTogether类代码示例

本文整理汇总了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;
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:6,代码来源:CosineSimilarityCalculationStrategy.java

示例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;
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:6,代码来源:CosineSimilarityCalculationStrategy.java

示例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();
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:6,代码来源:AdjustedCosineSimilarityCalculationStrategy.java

示例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();
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:6,代码来源:AdjustedCosineSimilarityCalculationStrategy.java

示例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();
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:6,代码来源:PearsonSimilarityCalculationStrategy.java

示例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();
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:6,代码来源:PearsonSimilarityCalculationStrategy.java

示例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);
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:10,代码来源:AbstractSimilarityCalculationStrategy.java

示例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);
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:10,代码来源:AbstractSimilarityCalculationStrategy.java


注:本文中的org.easyrec.plugin.itemitem.store.dao.ActionDAO.RatedTogether类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。