V - the vertex typeE - the edge typeS - the score typepublic abstract class AbstractIterativeScorerWithPriors<V,E,S> extends AbstractIterativeScorer<V,E,S> implements VertexScorer<V,S>
| Modifier and Type | Field and Description |
|---|---|
protected double |
alpha
The probability of making a 'jump' at each step.
|
protected org.apache.commons.collections4.Transformer<V,? extends S> |
vertex_priors
The prior probability of each vertex being visited on a given
'jump' (non-link-following) step.
|
edge_weights, graph, hyperedges_are_self_loops, max_delta, max_iterations, output_reversed, tolerance, total_iterations| Constructor and Description |
|---|
AbstractIterativeScorerWithPriors(edu.uci.ics.jung.graph.Hypergraph<V,E> g,
org.apache.commons.collections4.Transformer<E,? extends java.lang.Number> edge_weights,
org.apache.commons.collections4.Transformer<V,? extends S> vertex_priors,
double alpha)
Creates an instance for the specified graph, edge weights, vertex
priors, and jump probability.
|
AbstractIterativeScorerWithPriors(edu.uci.ics.jung.graph.Hypergraph<V,E> g,
org.apache.commons.collections4.Transformer<V,? extends S> vertex_priors,
double alpha)
Creates an instance for the specified graph, vertex priors, and jump
probability, with edge weights specified by the subclass.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAlpha()
Returns the probability of making a 'jump' (non-link-following step).
|
protected S |
getVertexPrior(V v)
Returns the prior probability for
v. |
org.apache.commons.collections4.Transformer<V,? extends S> |
getVertexPriors()
Returns a Transformer which maps each vertex to its prior probability.
|
void |
initialize()
Initializes the state of this instance.
|
acceptDisconnectedGraph, afterStep, collectDisappearingPotential, done, evaluate, getAdjustedIncidentCount, getCurrentValue, getEdgeWeight, getEdgeWeights, getIterations, getMaxIterations, getOutputValue, getTolerance, getVertexScore, isDisconnectedGraphOK, setCurrentValue, setEdgeWeights, setHyperedgesAreSelfLoops, setMaxIterations, setOutputValue, setTolerance, step, swapOutputForCurrent, update, updateMaxDeltaclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVertexScoreprotected org.apache.commons.collections4.Transformer<V,? extends S> vertex_priors
protected double alpha
public AbstractIterativeScorerWithPriors(edu.uci.ics.jung.graph.Hypergraph<V,E> g, org.apache.commons.collections4.Transformer<E,? extends java.lang.Number> edge_weights, org.apache.commons.collections4.Transformer<V,? extends S> vertex_priors, double alpha)
g - the graph whose vertices are to be assigned scoresedge_weights - the edge weights to use in the score assignmentvertex_priors - the prior probabilities of each vertex being 'jumped' toalpha - the probability of making a 'jump' at each steppublic AbstractIterativeScorerWithPriors(edu.uci.ics.jung.graph.Hypergraph<V,E> g, org.apache.commons.collections4.Transformer<V,? extends S> vertex_priors, double alpha)
g - the graph whose vertices are to be assigned scoresvertex_priors - the prior probabilities of each vertex being 'jumped' toalpha - the probability of making a 'jump' at each steppublic void initialize()
initialize in class AbstractIterativeScorer<V,E,S>protected S getVertexPrior(V v)
v.v - the vertex whose prior probability is being queriedvpublic org.apache.commons.collections4.Transformer<V,? extends S> getVertexPriors()
public double getAlpha()