tc
Class TCContingencyTable

java.lang.Object
  extended bytc.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


Field Summary
(package private)  int falseNegatives
           
(package private)  int falsePositives
           
(package private)  double precision
           
(package private)  double recall
           
(package private)  int trueNegatives
           
(package private)  int truePositives
           
 
Constructor Summary
(package private) TCContingencyTable()
           
 
Method Summary
 void addFalseNegative()
           
 void addFalsePositive()
           
 void addTrueNegative()
           
 void addTruePositive()
           
 void computePrecision()
          computes precision of the contingency table (of the category or the entire corpus)
 void computePrecisionAndRecall()
          computes both, precision and recall
 void computeRecall()
          computes recall of the contingency table (of the category or the entire corpus)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

falseNegatives

int falseNegatives

falsePositives

int falsePositives

trueNegatives

int trueNegatives

truePositives

int truePositives

precision

double precision

recall

double recall
Constructor Detail

TCContingencyTable

TCContingencyTable()
Method Detail

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()