Method Summary |
|
public void | addResult(int n, boolean isRelevant, long docNameExtractTime) Add a (possibly relevant) doc. |
public static QualityStats | average(QualityStats[] stats) Create a QualityStats object that is the average of the input QualityStats objects. |
public double | getAvp() Return the average precision at recall points. |
public long | getDocNamesExtractTime() Returns the time it took to extract doc names for judging the measured query, in milliseconds. |
public double | getMRR() Returns the Mean reciprocal rank over the queries or RR for a single query.
Reciprocal rank is defined as 1/r where r is the
rank of the first correct result, or 0 if there are no correct
results within the top 5 results. |
public double | getMaxGoodPoints() Returns the maximal number of good points. |
public double | getNumGoodPoints() Returns the number of good points (only relevant points). |
public double | getNumPoints() Returns the number of points (both relevant and irrelevant points). |
public double | getPrecisionAt(int n) Return the precision at rank n:
|{relevant hits within first n hits}| / n .
Parameters: n - requested precision point, must be at least 1 and at most QualityStats.MAX_POINTS. |
public double | getRecall() Return the recall: |{relevant hits}| / |{hits}|. |
public RecallPoint[] | getRecallPoints() Returns the recallPoints. |
public long | getSearchTime() Returns the search time in milliseconds for the measured query. |
public void | log(String title, int paddLines, PrintWriter logger, String prefix) Log information on this QualityStats object. |