當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。