/// <summary> /// 计算下一轮PageRank /// </summary> public void NextCircle() { _mapReduce = new MapReduce <T>(); }
/// <summary> /// /// </summary> /// <param name="totalCount">项目总数</param> /// <param name="stayProbability">保持留在某个项目, 不跳转的概率</param> public PageRank(int totalCount, double stayProbability = 0.8) { _mapReduce = new MapReduce <T>(); _stayProbability = stayProbability; _averageRank = 1.0 / totalCount; }