iglu.ir
Class PRResultUtils

java.lang.Object
  |
  +--iglu.ir.PRResultUtils

public class PRResultUtils
extends java.lang.Object

Utilities for working with PRResult objects. Works in a manner consistent with _Modern_Information_Retrieval_ by Baeza-Yates and Ribeiro-Neto, chapter 3.

Author:
Travis Bauer
See Also:
PRResult

Field Summary
static double[] precList
          The default number of documents to display
 
Constructor Summary
private PRResultUtils()
           
 
Method Summary
static double[] dpAverages(PRResult[] rsts)
          Return the average precisions for the number of document values listed in precList.
static PRPair lastPRPair(PRResult rst)
          Returns the last PRPair in the resultset
static double[] rpAverages(PRResult[] rsts)
          Calculates interpolated precision results for know recall values.
static java.lang.String summary(PRResult[] rsts)
          Returns a string containing information about result sets
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

precList

public static final double[] precList
The default number of documents to display

Constructor Detail

PRResultUtils

private PRResultUtils()
Method Detail

rpAverages

public static double[] rpAverages(PRResult[] rsts)
Calculates interpolated precision results for know recall values.


dpAverages

public static double[] dpAverages(PRResult[] rsts)
Return the average precisions for the number of document values listed in precList.


summary

public static java.lang.String summary(PRResult[] rsts)
Returns a string containing information about result sets


lastPRPair

public static PRPair lastPRPair(PRResult rst)
Returns the last PRPair in the resultset