|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.uci.ics.jung.algorithms.scoring.AbstractIterativeScorer<V,E,S> edu.uci.ics.jung.algorithms.scoring.AbstractIterativeScorerWithPriors<V,E,HITS.Scores> edu.uci.ics.jung.algorithms.scoring.HITSWithPriors<V,E>
public class HITSWithPriors<V,E>
A generalization of HITS that permits non-uniformly-distributed random jumps. The 'vertex_priors' (that is, prior probabilities for each vertex) may be thought of as the fraction of the total 'potential' (hub or authority score) that is assigned to that vertex out of the portion that is assigned according to random jumps.
Field Summary | |
---|---|
protected HITS.Scores |
disappearing_potential
The sum of the potential, at each step, associated with vertices with no outedges (authority) or no inedges (hub). |
Fields inherited from class edu.uci.ics.jung.algorithms.scoring.AbstractIterativeScorerWithPriors |
---|
alpha, vertex_priors |
Fields inherited from class edu.uci.ics.jung.algorithms.scoring.AbstractIterativeScorer |
---|
edge_weights, graph, hyperedges_are_self_loops, max_delta, max_iterations, output_reversed, tolerance, total_iterations |
Constructor Summary | |
---|---|
HITSWithPriors(Hypergraph<V,E> g,
org.apache.commons.collections15.Transformer<E,? extends Number> edge_weights,
org.apache.commons.collections15.Transformer<V,HITS.Scores> vertex_priors,
double alpha)
Creates an instance for the specified graph, edge weights, vertex prior probabilities, and random jump probability (alpha). |
|
HITSWithPriors(Hypergraph<V,E> g,
org.apache.commons.collections15.Transformer<V,HITS.Scores> vertex_priors,
double alpha)
Creates an instance for the specified graph, vertex priors, and random jump probability (alpha). |
Method Summary | |
---|---|
protected void |
afterStep()
Code which is executed after each step. |
protected void |
collectDisappearingPotential(V v)
Collects the "disappearing potential" associated with vertices that have either no incoming edges, no outgoing edges, or both. |
protected void |
normalizeScores()
Normalizes scores so that sum of their squares = 1. |
protected double |
update(V v)
Updates the value for this vertex. |
Methods inherited from class edu.uci.ics.jung.algorithms.scoring.AbstractIterativeScorerWithPriors |
---|
getAlpha, getVertexPrior, getVertexPriors, initialize |
Methods inherited from class edu.uci.ics.jung.algorithms.scoring.AbstractIterativeScorer |
---|
acceptDisconnectedGraph, done, evaluate, getAdjustedIncidentCount, getCurrentValue, getEdgeWeight, getEdgeWeights, getIterations, getMaxIterations, getOutputValue, getTolerance, getVertexScore, isDisconnectedGraphOK, setCurrentValue, setEdgeWeights, setHyperedgesAreSelfLoops, setMaxIterations, setOutputValue, setTolerance, step, swapOutputForCurrent, updateMaxDelta |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.uci.ics.jung.algorithms.scoring.VertexScorer |
---|
getVertexScore |
Field Detail |
---|
protected HITS.Scores disappearing_potential
Constructor Detail |
---|
public HITSWithPriors(Hypergraph<V,E> g, org.apache.commons.collections15.Transformer<E,? extends Number> edge_weights, org.apache.commons.collections15.Transformer<V,HITS.Scores> vertex_priors, double alpha)
g
- the input graphedge_weights
- the edge weightsvertex_priors
- the prior probability for each vertexalpha
- the probability of a random jump at each steppublic HITSWithPriors(Hypergraph<V,E> g, org.apache.commons.collections15.Transformer<V,HITS.Scores> vertex_priors, double alpha)
g
- the input graphvertex_priors
- the prior probability for each vertexalpha
- the probability of a random jump at each stepMethod Detail |
---|
protected double update(V v)
update
in class AbstractIterativeScorer<V,E,HITS.Scores>
v
- the vertex whose value is to be updated
protected void afterStep()
super.afterStep()
.
afterStep
in class AbstractIterativeScorer<V,E,HITS.Scores>
collectDisappearingPotential(Object)
protected void normalizeScores()
protected void collectDisappearingPotential(V v)
collectDisappearingPotential
in class AbstractIterativeScorer<V,E,HITS.Scores>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |