Package eu.stratosphere.test.iterative.nephele.danglingpagerank

Examples of eu.stratosphere.test.iterative.nephele.danglingpagerank.PageRankStats


    aggregator = getIterationRuntimeContext().getIterationAggregator(AGGREGATOR_NAME);
   
    if (currentIteration == 1) {
      danglingRankFactor = BETA * (double) numDanglingVertices / ((double) numVertices * (double) numVertices);
    } else {
      PageRankStats previousAggregate = getIterationRuntimeContext().getPreviousIterationAggregate(AGGREGATOR_NAME);
      danglingRankFactor = BETA * previousAggregate.danglingRank() / (double) numVertices;
    }
  }
View Full Code Here


   
    long numVertices = ConfigUtils.asLong("pageRank.numVertices", parameters);

    if (currentIteration > 1) {
     
      PageRankStats stats = (PageRankStats) getIterationRuntimeContext().getPreviousIterationAggregate(CustomCompensatableDotProductCoGroup.AGGREGATOR_NAME);

      uniformRank = 1d / (double) numVertices;
      double lostMassFactor = (numVertices - stats.numVertices()) / (double) numVertices;
      rescaleFactor = (1 - lostMassFactor) / stats.rank();
    }
  }
View Full Code Here

TOP

Related Classes of eu.stratosphere.test.iterative.nephele.danglingpagerank.PageRankStats

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.