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 double
tolerance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
deltas()
void
getPageRankResult(org.neo4j.graphalgo.core.utils.paged.HugeDoubleArray result)
float[][]
nextScores()
boolean
partitionIsStable()
void
prepareNextIteration(float[][] prevScores)
void
prepareNormalizeDeltas(double l2Norm)
void
run()
void
setStarts(long[] starts, int[] lengths)
-
-
-
Method Detail
-
setStarts
public void setStarts(long[] starts, int[] lengths)
- Specified by:
setStarts
in interfaceComputeStep
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
prepareNormalizeDeltas
public void prepareNormalizeDeltas(double l2Norm)
- Specified by:
prepareNormalizeDeltas
in interfaceComputeStep
-
prepareNextIteration
public void prepareNextIteration(float[][] prevScores)
- Specified by:
prepareNextIteration
in interfaceComputeStep
-
nextScores
public float[][] nextScores()
- Specified by:
nextScores
in interfaceComputeStep
-
getPageRankResult
public void getPageRankResult(org.neo4j.graphalgo.core.utils.paged.HugeDoubleArray result)
- Specified by:
getPageRankResult
in interfaceComputeStep
-
deltas
public double[] deltas()
- Specified by:
deltas
in interfaceComputeStep
-
partitionIsStable
public boolean partitionIsStable()
- Specified by:
partitionIsStable
in interfaceComputeStep
-
-