Package org.neo4j.graphalgo.pagerank
Class BaseComputeStep
- java.lang.Object
-
- org.neo4j.graphalgo.pagerank.BaseComputeStep
-
- All Implemented Interfaces:
java.lang.Runnable,ComputeStep
public abstract class BaseComputeStep extends java.lang.Object implements ComputeStep
-
-
Field Summary
Fields Modifier and Type Field Description protected doubletolerance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]deltas()voidgetPageRankResult(org.neo4j.graphalgo.core.utils.paged.HugeDoubleArray result)float[][]nextScores()booleanpartitionIsStable()voidprepareNextIteration(float[][] prevScores)voidprepareNormalizeDeltas(double l2Norm)voidrun()voidsetStarts(long[] starts, int[] lengths)
-
-
-
Method Detail
-
setStarts
public void setStarts(long[] starts, int[] lengths)- Specified by:
setStartsin interfaceComputeStep
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
prepareNormalizeDeltas
public void prepareNormalizeDeltas(double l2Norm)
- Specified by:
prepareNormalizeDeltasin interfaceComputeStep
-
prepareNextIteration
public void prepareNextIteration(float[][] prevScores)
- Specified by:
prepareNextIterationin interfaceComputeStep
-
nextScores
public float[][] nextScores()
- Specified by:
nextScoresin interfaceComputeStep
-
getPageRankResult
public void getPageRankResult(org.neo4j.graphalgo.core.utils.paged.HugeDoubleArray result)
- Specified by:
getPageRankResultin interfaceComputeStep
-
deltas
public double[] deltas()
- Specified by:
deltasin interfaceComputeStep
-
partitionIsStable
public boolean partitionIsStable()
- Specified by:
partitionIsStablein interfaceComputeStep
-
-