public class PageRank
extends java.lang.Object
| Constructor and Description |
|---|
PageRank()
Initialize a new instance of the PageRank class.
|
PageRank(double factor)
Initialize a new instance of the PageRank class.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
Compute(AdjacencyMatrix matrix)
Compute PageRank.
|
double[] |
Compute(AdjacencyMatrix matrix,
double[] weights)
Compute PageRank.
|
double |
getEpsilon()
Get epsilon value.
|
double |
getFactor()
Get damping factor.
|
int |
getNumberOfIterations()
Get number of iterations executed by the algorithm.
|
void |
setEpsilon(double epsilon)
Set epsilon value.
|
void |
setFactor(double factor)
Set damping factor.
|
public PageRank()
public PageRank(double factor)
factor - Damping factor.public double getEpsilon()
public void setEpsilon(double epsilon)
epsilon - Epsilon value.public double getFactor()
public void setFactor(double factor)
factor - Damping factor.public int getNumberOfIterations()
public double[] Compute(AdjacencyMatrix matrix)
matrix - Adjacency matrix.public double[] Compute(AdjacencyMatrix matrix, double[] weights)
matrix - Adjacency matrix.weights - Inital weights,