de.lmu.ifi.dbs.elki.utilities
Class QueryStatistic

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.utilities.QueryStatistic

public class QueryStatistic
extends Object

Provides some statistics about queries using a filter-refinement architecture.


Field Summary
private  int candidates
          The number of candidate objects which need a refinement.
private  int results
          The overall number of the result objects after refinement plus the true hits.
private  int trueHits
          The number of true hits which do not need a refinement.
 
Constructor Summary
QueryStatistic()
           
 
Method Summary
 void addCandidates(int candidates)
          Adds the specified number to the number of the candidate objects.
 void addResults(int results)
          Adds the specified number to the number of the result objects.
 void addTrueHits(int trueHits)
          Adds the specified number to the number of the true hits.
 void clear()
          Clears the values of this statistic.
 String toString()
          Returns the number of candidate objects and the number of the result objects after refinement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

candidates

private int candidates
The number of candidate objects which need a refinement.


trueHits

private int trueHits
The number of true hits which do not need a refinement.


results

private int results
The overall number of the result objects after refinement plus the true hits.

Constructor Detail

QueryStatistic

public QueryStatistic()
Method Detail

clear

public void clear()
Clears the values of this statistic.


addResults

public void addResults(int results)
Adds the specified number to the number of the result objects.

Parameters:
results - the number of the result objects to be added

addCandidates

public void addCandidates(int candidates)
Adds the specified number to the number of the candidate objects.

Parameters:
candidates - the number of the candidate objects to be added

addTrueHits

public void addTrueHits(int trueHits)
Adds the specified number to the number of the true hits.

Parameters:
trueHits - the number of the true hits to be added

toString

public String toString()
Returns the number of candidate objects and the number of the result objects after refinement.

Overrides:
toString in class Object
Returns:
a string representation of this query statistic

Release 0.4.0 (2011-09-20_1324)