netkit.classifiers.active.graphfunctions
Class ReverseScoringFunction

java.lang.Object
  extended by netkit.classifiers.active.graphfunctions.ScoringFunction
      extended by netkit.classifiers.active.graphfunctions.ReverseScoringFunction
All Implemented Interfaces:
java.util.Comparator<PickLabelStrategy.LabelNode>
Direct Known Subclasses:
Betweenness, LabelClosenessRank, LabelWeightedClosenessRank, WeightedBetweenness

public abstract class ReverseScoringFunction
extends ScoringFunction


Field Summary
 
Fields inherited from class netkit.classifiers.active.graphfunctions.ScoringFunction
gm, labeler, labels
 
Constructor Summary
ReverseScoringFunction()
           
 
Method Summary
 double bestScore()
          What is the best score (first to be picked)
 int compare(double d1, double d2)
          Reverse of default comparator function.
 double worstScore()
          What is the best score (last to be picked)
 
Methods inherited from class netkit.classifiers.active.graphfunctions.ScoringFunction
clusterBased, compare, initialize, score, toString, update, updateable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ReverseScoringFunction

public ReverseScoringFunction()
Method Detail

compare

public int compare(double d1,
                   double d2)
Reverse of default comparator function. Return natural order by default to ensure that the 'best' score (=smallest) is at the end of the list (first to be picked).

Overrides:
compare in class ScoringFunction

bestScore

public double bestScore()
What is the best score (first to be picked)

Overrides:
bestScore in class ScoringFunction

worstScore

public double worstScore()
What is the best score (last to be picked)

Overrides:
worstScore in class ScoringFunction