java.lang.Object
recoinx.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
|
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 |
logger
static org.apache.log4j.Logger logger
- The logger for this class.
ScoreNormalizer
public ScoreNormalizer()
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.