Package com.mastfrog.graph.algorithm
Class PageRank
- java.lang.Object
-
- com.mastfrog.graph.algorithm.Algorithm<double[],A>
-
- com.mastfrog.graph.algorithm.RankingAlgorithm<PageRank>
-
- com.mastfrog.graph.algorithm.PageRank
-
public final class PageRank extends RankingAlgorithm<PageRank>
- Author:
- Tim Boudreau
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mastfrog.graph.algorithm.Algorithm
Algorithm.BooleanParameter<A extends Algorithm>, Algorithm.DoubleParameter<A extends Algorithm>, Algorithm.IntParameter<A extends Algorithm>
-
-
Field Summary
Fields Modifier and Type Field Description static Algorithm.DoubleParameter<PageRank>DAMPING_FACTORstatic Algorithm.IntParameter<PageRank>MAXIMUM_ITERATIONSstatic Algorithm.DoubleParameter<PageRank>MINIMUM_DIFFERENCEstatic Algorithm.BooleanParameter<PageRank>NORMALIZE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]apply(IntGraph graph)PageRanksetParameter(Algorithm.BooleanParameter<PageRank> param, boolean value)PageRanksetParameter(Algorithm.DoubleParameter<PageRank> param, double value)PageRanksetParameter(Algorithm.IntParameter<PageRank> param, int value)-
Methods inherited from class com.mastfrog.graph.algorithm.RankingAlgorithm
apply
-
Methods inherited from class com.mastfrog.graph.algorithm.Algorithm
createBooleanParameter, createDoubleParameter, createIntegerParameter, eigenvectorCentrality, pageRank, toString
-
-
-
-
Field Detail
-
MAXIMUM_ITERATIONS
public static Algorithm.IntParameter<PageRank> MAXIMUM_ITERATIONS
-
MINIMUM_DIFFERENCE
public static Algorithm.DoubleParameter<PageRank> MINIMUM_DIFFERENCE
-
DAMPING_FACTOR
public static Algorithm.DoubleParameter<PageRank> DAMPING_FACTOR
-
NORMALIZE
public static Algorithm.BooleanParameter<PageRank> NORMALIZE
-
-
Method Detail
-
apply
public double[] apply(IntGraph graph)
-
setParameter
public PageRank setParameter(Algorithm.BooleanParameter<PageRank> param, boolean value)
- Overrides:
setParameterin classAlgorithm<double[],PageRank>
-
setParameter
public PageRank setParameter(Algorithm.DoubleParameter<PageRank> param, double value)
- Overrides:
setParameterin classAlgorithm<double[],PageRank>
-
setParameter
public PageRank setParameter(Algorithm.IntParameter<PageRank> param, int value)
- Overrides:
setParameterin classAlgorithm<double[],PageRank>
-
-