tc
Class TCContingencyTable
java.lang.Object
tc.TCContingencyTable
- public class TCContingencyTable
- extends java.lang.Object
implements the contingency table with its
field and methods to calculate precision and recall
usable both, for global and local contingency tables
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
falseNegatives
int falseNegatives
falsePositives
int falsePositives
trueNegatives
int trueNegatives
truePositives
int truePositives
precision
double precision
recall
double recall
TCContingencyTable
TCContingencyTable()
computePrecision
public void computePrecision()
- computes precision of the contingency table
(of the category or the entire corpus)
computeRecall
public void computeRecall()
- computes recall of the contingency table
(of the category or the entire corpus)
computePrecisionAndRecall
public void computePrecisionAndRecall()
- computes both, precision and recall
addFalseNegative
public void addFalseNegative()
addFalsePositive
public void addFalsePositive()
addTrueNegative
public void addTrueNegative()
addTruePositive
public void addTruePositive()