public class PageRank
extends java.lang.Object
PageRank can be computed either iteratively or algebraically. The iterative method can be viewed as the power iteration method.
| Constructor and Description |
|---|
PageRank() |
| Modifier and Type | Method and Description |
|---|---|
static double[] |
pagerank(Matrix A)
Calculate the page rank vector.
|
static double[] |
pagerank(Matrix A,
double[] v)
Calculate the page rank vector.
|
static double[] |
pagerank(Matrix A,
double[] v,
double damping,
double tol,
int maxIter)
Calculate the page rank vector.
|
public static double[] pagerank(Matrix A)
A - the matrix supporting matrix vector multiplication operation.public static double[] pagerank(Matrix A, double[] v)
A - the matrix supporting matrix vector multiplication operation.v - the teleportation vector.public static double[] pagerank(Matrix A, double[] v, double damping, double tol, int maxIter)
A - the matrix supporting matrix vector multiplication operation.v - the teleportation vector.damping - the damper factor.tol - the desired convergence tolerance.maxIter - the maximum number of iterations in case that the algorithm
does not converge.