scratch.joshua.ranking
Class SingleValueRanker

java.lang.Object
  extended by scratch.joshua.ranking.AbstractRanker
      extended by scratch.joshua.ranking.AbstractIterativeRanker
          extended by scratch.joshua.ranking.SingleValueRanker
Direct Known Subclasses:
PageRankRanker

public abstract class SingleValueRanker
extends AbstractIterativeRanker


Nested Class Summary
 
Nested classes/interfaces inherited from class scratch.joshua.ranking.AbstractIterativeRanker
AbstractIterativeRanker.UniformIncident, AbstractIterativeRanker.UniformOut
 
Field Summary
 
Fields inherited from class scratch.joshua.ranking.AbstractIterativeRanker
max_iterations, priors, tolerance, UNIFORM_INCIDENT, UNIFORM_OUT
 
Fields inherited from class scratch.joshua.ranking.AbstractRanker
edge_value, graph, UNIT_VALUE
 
Constructor Summary
SingleValueRanker(ArchetypeGraph g, int max_iterations, double tolerance)
           
SingleValueRanker(ArchetypeGraph g, NumberEdgeValue edge_value, int max_iterations, double tolerance)
           
SingleValueRanker(ArchetypeGraph g, NumberVertexValue priors, int max_iterations, double tolerance)
           
SingleValueRanker(ArchetypeGraph g, NumberVertexValue priors, NumberEdgeValue edge_value, int max_iterations, double tolerance)
           
 
Method Summary
 void advance(NumberVertexValue out)
           
abstract  void advance(NumberVertexValue in, NumberVertexValue out)
           
 void evaluate(NumberVertexValue out)
           
 void evaluate(NumberVertexValue in, NumberVertexValue out)
           
 
Methods inherited from class scratch.joshua.ranking.AbstractIterativeRanker
getNormalizedInitialValues, getNormalizedInitialValues, getToleranceValue, hasConverged
 
Methods inherited from class scratch.joshua.ranking.AbstractRanker
normalizeValues, normalizeValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleValueRanker

public SingleValueRanker(ArchetypeGraph g,
                         int max_iterations,
                         double tolerance)

SingleValueRanker

public SingleValueRanker(ArchetypeGraph g,
                         NumberVertexValue priors,
                         int max_iterations,
                         double tolerance)

SingleValueRanker

public SingleValueRanker(ArchetypeGraph g,
                         NumberEdgeValue edge_value,
                         int max_iterations,
                         double tolerance)

SingleValueRanker

public SingleValueRanker(ArchetypeGraph g,
                         NumberVertexValue priors,
                         NumberEdgeValue edge_value,
                         int max_iterations,
                         double tolerance)
Method Detail

evaluate

public void evaluate(NumberVertexValue in,
                     NumberVertexValue out)

evaluate

public void evaluate(NumberVertexValue out)

advance

public abstract void advance(NumberVertexValue in,
                             NumberVertexValue out)

advance

public void advance(NumberVertexValue out)