public class Hits
extends java.lang.Object
| Constructor and Description |
|---|
Hits(AdjacencyMatrix matrix)
Initialize a new instance of the Hits class.
|
Hits(AdjacencyMatrix matrix,
double epsilon)
Initialize a new instance of the Hits class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Compute(AdjacencyMatrix matrix)
Compute Hits.
|
void |
Compute(AdjacencyMatrix matrix,
double[] weights)
Compute Hits.
|
double[] |
getAuthority()
Get Authority.
|
double |
getEpsilon()
Get epsilon value.
|
double[] |
getHubs()
Get Hubs.
|
int |
getNumberOfIterations()
Get number of iterations executed by the algorithm.
|
void |
setEpsilon(double epsilon)
Set epsilon value.
|
public Hits(AdjacencyMatrix matrix)
matrix - Adjacency matrix.public Hits(AdjacencyMatrix matrix, double epsilon)
matrix - Adjacency matrix.epsilon - Epsilon value.public double getEpsilon()
public void setEpsilon(double epsilon)
epsilon - Epsilon value.public int getNumberOfIterations()
public double[] getAuthority()
public double[] getHubs()
public void Compute(AdjacencyMatrix matrix)
matrix - Adjacency matrix.public void Compute(AdjacencyMatrix matrix, double[] weights)
matrix - Adjacency matrix.weights - Normalized weights.[0..1]