public interface PageRank
PageRank can be computed either iteratively or algebraically. The iterative method can be viewed as the power iteration method.
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
| Modifier and Type | Method and Description |
|---|---|
static double[] |
of(DMatrix A)
Calculates the page rank vector.
|
static double[] |
of(DMatrix A,
double[] v)
Calculates the page rank vector.
|
static double[] |
of(DMatrix A,
double[] v,
double damping,
double tol,
int maxIter)
Calculates the page rank vector.
|
static double[] of(DMatrix A)
A - the matrix supporting matrix vector multiplication operation.static double[] of(DMatrix A, double[] v)
A - the matrix supporting matrix vector multiplication operation.v - the teleportation vector.static double[] of(DMatrix 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.