org.activemath.webapp.dict.queries
Class SearchEvaluationData.QueryAndEval
java.lang.Object
org.activemath.webapp.dict.queries.SearchEvaluationData.QueryAndEval
- Enclosing class:
- SearchEvaluationData
public static class SearchEvaluationData.QueryAndEval
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchEvaluationData.QueryAndEval
public SearchEvaluationData.QueryAndEval()
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