tc
Class TCAccuracyResult

java.lang.Object
  extended bytc.TCAccuracyResult

public class TCAccuracyResult
extends java.lang.Object

this class contains the standard values for a classifier 11 point precision, break even, average precision, and all the recall/precision values


Field Summary
(package private)  double averagePrecision
           
(package private)  double averagePrecisionSum
           
(package private)  double breakEvenMinimumDistance
           
(package private)  double breakEvenPoint
           
(package private)  java.lang.String classificatorPropertyString
          a textual description of the classifier, used weighting function etc.
(package private)  double[] elevenPointDistances
           
(package private)  double[] elevenPointMinimumDistances
           
(package private)  double elevenPointPrecision
          variables to calculate the standard 11point precision
(package private)  double elevenPointPrecisionSum
          variables to calculate the standard 11point precision
(package private)  double[] elevenPointPrecisionValues
           
(package private) static double[] elevenPointRecallValues
           
(package private)  double lastAveragePrecisionPrecision
           
(package private)  double lastAveragePrecisionRecall
           
(package private)  java.util.ArrayList precisionRecallValues
          the arraylist holding all the precision/recall value pairs
 
Constructor Summary
(package private) TCAccuracyResult(java.lang.String propertyString)
           
 
Method Summary
 void addEvaluationResult(TCEvaluationResult evaluationResult)
          adds one evaluation result to the instance of the class and does all the computaions necessary to calculate 11point presision, break even and average precision
 void finalize()
          finalize the calculations, that is, calculate the average precision and the 11 point precision given the sums
 double getAveragePrecision()
          returns the average precision for this evaluation
 double getBreakEvenMinimumDistance()
           
 double getBreakEvenPoint()
          return the break even point of this evaluation
 double getElevenPointPrecision()
          returns the eleven point precision for this evaluation
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classificatorPropertyString

java.lang.String classificatorPropertyString
a textual description of the classifier, used weighting function etc.


precisionRecallValues

java.util.ArrayList precisionRecallValues
the arraylist holding all the precision/recall value pairs


elevenPointPrecision

double elevenPointPrecision
variables to calculate the standard 11point precision


elevenPointPrecisionSum

double elevenPointPrecisionSum
variables to calculate the standard 11point precision


elevenPointRecallValues

static double[] elevenPointRecallValues

elevenPointPrecisionValues

double[] elevenPointPrecisionValues

elevenPointMinimumDistances

double[] elevenPointMinimumDistances

elevenPointDistances

double[] elevenPointDistances

breakEvenPoint

double breakEvenPoint

breakEvenMinimumDistance

double breakEvenMinimumDistance

averagePrecision

double averagePrecision

averagePrecisionSum

double averagePrecisionSum

lastAveragePrecisionRecall

double lastAveragePrecisionRecall

lastAveragePrecisionPrecision

double lastAveragePrecisionPrecision
Constructor Detail

TCAccuracyResult

TCAccuracyResult(java.lang.String propertyString)
Method Detail

addEvaluationResult

public void addEvaluationResult(TCEvaluationResult evaluationResult)
adds one evaluation result to the instance of the class and does all the computaions necessary to calculate 11point presision, break even and average precision

Parameters:
evaluationResult - the result of the evaluation for a threshold setting

finalize

public void finalize()
finalize the calculations, that is, calculate the average precision and the 11 point precision given the sums


getBreakEvenPoint

public double getBreakEvenPoint()
return the break even point of this evaluation

Returns:
the break even point

getElevenPointPrecision

public double getElevenPointPrecision()
returns the eleven point precision for this evaluation

Returns:

getAveragePrecision

public double getAveragePrecision()
returns the average precision for this evaluation

Returns:

getBreakEvenMinimumDistance

public double getBreakEvenMinimumDistance()