org.activemath.webapp.dict.queries
Class SearchEvaluationData.QueryAndEval

java.lang.Object
  extended by org.activemath.webapp.dict.queries.SearchEvaluationData.QueryAndEval
Enclosing class:
SearchEvaluationData

public static class SearchEvaluationData.QueryAndEval
extends Object


Constructor Summary
SearchEvaluationData.QueryAndEval()
           
 
Method Summary
 void addQueryResult(SearchEvaluationData.EvalResult result)
           
 List getPageOfResult()
           
 float getPrecision()
          Measures the precision of the query wrt to the evaluation.
 AMQueryPack getQuery()
           
 float getRecall()
          Measures the recall of the query wrt to the evaluation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchEvaluationData.QueryAndEval

public SearchEvaluationData.QueryAndEval()
Method Detail

getQuery

public AMQueryPack getQuery()

addQueryResult

public void addQueryResult(SearchEvaluationData.EvalResult result)

getPageOfResult

public List getPageOfResult()

getPrecision

public float getPrecision()
Measures the precision of the query wrt to the evaluation. i.e. # relevant hits in hitlist / # hits in hitlist

Returns:
the computed precision or NaN if not at the first page of results

getRecall

public float getRecall()
Measures the recall of the query wrt to the evaluation. i.e. # relevant hits in hitlist / # relevant documents in the collection

Returns:
the computed recall or NaN if not at the first page of results