Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

recoinx.clef
Class ScoreNormalizer  view ScoreNormalizer download ScoreNormalizer.java

java.lang.Object
  extended byrecoinx.clef.ScoreNormalizer

public class ScoreNormalizer
extends java.lang.Object

The ScoreNormalizer is a helper class that provides methods to normalize the scores of CLEFResult objects in a CLEFResultList, e.g. to the range [0,1].

Version:
0.2.9

Field Summary
(package private) static org.apache.log4j.Logger logger
          The logger for this class.
 
Constructor Summary
ScoreNormalizer()
           
 
Method Summary
static CLEFResultList normalize(CLEFResultList list)
          Takes the specified CLEFResultList and normalizes the scores of the contained CLEFResult objects to the range of [0,1] using the list's highest result.
static CLEFResultList normalize(CLEFResultList list, float maxScore)
          Takes the specified CLEFResultList and normalizes the scores of the contained CLEFResult objects to the range of by dividing all RSVs with the specified float maxScore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger
The logger for this class.

Constructor Detail

ScoreNormalizer

public ScoreNormalizer()
Method Detail

normalize

public static CLEFResultList normalize(CLEFResultList list)
Takes the specified CLEFResultList and normalizes the scores of the contained CLEFResult objects to the range of [0,1] using the list's highest result.


normalize

public static CLEFResultList normalize(CLEFResultList list,
                                       float maxScore)
Takes the specified CLEFResultList and normalizes the scores of the contained CLEFResult objects to the range of by dividing all RSVs with the specified float maxScore.