|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.tumba.links.SimRank
public class SimRank
SimRank is an iterative PageRank-like method for computing similarity. It goes beyond direct cocitation for computing similarity much as PageRank goes beyond direct linking for computing importance.
Field Summary | |
---|---|
private double |
dampening
The value for the SimRank dampening factor |
private WebGraph |
graph
The data structure containing the Web linkage graph |
private java.util.Map |
scores
A Map containing the SimRank values for each page |
Constructor Summary | |
---|---|
SimRank(WebGraph graph)
Constructor for SimRank |
Method Summary | |
---|---|
void |
computeSimRank()
Computes the SimRank value for all the nodes in the Web Graph. |
void |
computeSimRank(int iter)
Computes the SimRank value for all the nodes in the Web Graph. |
double |
getDampening()
Returns the dampening factor used for the SimRank Algorithm. |
void |
setDampening(double damp)
Sets the value for the SimRank dampening factor. |
private java.util.Map |
simRank(java.lang.Integer id)
Returns the SimRank score between a given link identifyer and all other links in the Web graph Identifyers are Integer numberes, used in WebGraph to
represent the Web graph for efficiency reasons. |
private java.lang.Double |
simRank(java.lang.Integer id1,
java.lang.Integer id2)
Returns the SimRank score between two given link identifyers Identifyers are Integer numberes, used in WebGraph to
represent the Web graph for efficiency reasons. |
java.util.Map |
simRank(java.lang.String link)
Returns the SimRank score between a given link and all other links in the Web graph |
java.lang.Double |
simRank(java.lang.String link1,
java.lang.String link2)
Returns the SimRank score between two given links |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private double dampening
private WebGraph graph
private java.util.Map scores
Map
containing the SimRank values for each page
Constructor Detail |
---|
public SimRank(WebGraph graph)
graph
- The data structure containing the Web linkage graphMethod Detail |
---|
public void setDampening(double damp)
damp
- The dampening factorpublic double getDampening()
public void computeSimRank()
public void computeSimRank(int iter)
iter
- The number of iterations for the algorithmpublic java.util.Map simRank(java.lang.String link)
link
- The url for the link
public java.lang.Double simRank(java.lang.String link1, java.lang.String link2)
link1
- The url for one of the linkslink2
- The url for the other link
private java.util.Map simRank(java.lang.Integer id)
WebGraph
to
represent the Web graph for efficiency reasons.
link
- The identifyer for the link
private java.lang.Double simRank(java.lang.Integer id1, java.lang.Integer id2)
WebGraph
to
represent the Web graph for efficiency reasons.
link1
- The identifyer for one of the linkslink2
- The identifyer for the other link
WebGraph.IdentifyerToURL()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |