|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--iglu.ir.PRResult
The results of a PrecisionRecall experiment on a particular query. This class is loaded with the results of a precesion/recall test on a single query, and is able to interpolate to give back arbitrary results. So you tell it which queries you actually made, and the results, and it will tell you the values for recall=0.1, 0.2, etc. This is used by the PrecisionRecall class to give its results.
PrecisionRecall
,
Serialized FormField Summary | |
java.util.TreeMap |
docOrder
|
int |
numDocs
|
int |
numInterp
|
int |
numRelevant
|
(package private) static double[] |
precList
The default number of documents to display |
java.util.TreeMap |
precOrder
|
(package private) double |
precTotal
|
(package private) java.io.Serializable |
qid
|
double |
querySize
|
double |
queryTime
|
java.util.TreeMap |
recallOrder
|
(package private) double |
recTotal
|
Constructor Summary | |
PRResult(int numRelevant,
int numDocs,
java.io.Serializable qid)
Create a new PRResult object. |
Method Summary | |
void |
addMetaData(double size,
double time)
Add information about the size of the query and the time the query took |
void |
addTest(PRPair prpair)
Add the results of a particular precision/recall test to this PRResult. |
static void |
main(java.lang.String[] argv)
A simple test of the PRResult class |
double |
precAtNumDocs(double numDocs)
Returns the precision at a particular number of documents. |
double |
precAtRecall(double recall)
Give the number of docs retrieved and the precision for the given recall. |
java.lang.String |
realResults()
Return a String containing all the values really stored in the PRResut. |
static double[] |
rpAverages(java.util.Collection results)
Calculate and return the average precision across all queries for the values (0.0, 0.1, 0.2, . |
static double[] |
rpAverages(PRResult[] rsts)
Calculate and return the average precision across all queries for the values (0.0, 0.1, 0.2, . |
javax.swing.JPanel |
toPane()
return a pane containing two graphs: The recall/precision graph and the documents/precision graph. |
java.lang.String |
toString()
Return a string interpretation of this PRResult. |
static javax.swing.JTabbedPane |
toTabbedPane(PRResult[] rs)
A convienence class to construct a tabbed pane of the results. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int numRelevant
public int numDocs
public int numInterp
java.io.Serializable qid
double precTotal
double recTotal
public double querySize
public double queryTime
public java.util.TreeMap docOrder
public java.util.TreeMap precOrder
public java.util.TreeMap recallOrder
static final double[] precList
Constructor Detail |
public PRResult(int numRelevant, int numDocs, java.io.Serializable qid)
numRelevant
- The number of relevant documents for this
query.numDocs
- The total number of documents for this query.qid
- A name for this query.Method Detail |
public void addMetaData(double size, double time)
public void addTest(PRPair prpair)
public double precAtNumDocs(double numDocs)
public double precAtRecall(double recall)
public java.lang.String toString()
toString
in class java.lang.Object
public javax.swing.JPanel toPane()
public static javax.swing.JTabbedPane toTabbedPane(PRResult[] rs)
public static double[] rpAverages(java.util.Collection results)
public static double[] rpAverages(PRResult[] rsts)
public java.lang.String realResults()
public static void main(java.lang.String[] argv)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |