Ejemplo n.º 1
0
 /// <summary>
 ///     计算下一轮PageRank
 /// </summary>
 public void NextCircle()
 {
     _mapReduce = new MapReduce <T>();
 }
Ejemplo n.º 2
0
 /// <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;
 }