edu.illinois.cs.cogcomp.lbj.coref.ir.scores
Class FScore

java.lang.Object
  extended by edu.illinois.cs.cogcomp.lbj.coref.ir.scores.Score
      extended by edu.illinois.cs.cogcomp.lbj.coref.ir.scores.FScore

public class FScore
extends Score

Stores correctPredictionCount, PredictionCount, and targetCount, and calculates and returns Precision, Recall, and F-Measure.


Field Summary
private  int m_correctPredictions
           
private  double m_precision
           
private  int m_predictions
           
private  double m_recall
           
private  int m_targets
           
 
Constructor Summary
FScore()
           
FScore(double precision, double recall)
           
FScore(int targetCount)
           
FScore(int correctPredictions, int targets, int predictions)
           
 
Method Summary
 double getF1()
           
 double getPrecision()
           
 double getRecall()
           
 double getScoreDouble()
           
 java.lang.String getScoreString()
           
 void recordCorrectPrediction()
           
 void recordMistakenPrediction()
           
 void setTargetCount(int targets)
           
private  void updatePR()
           
 
Methods inherited from class edu.illinois.cs.cogcomp.lbj.coref.ir.scores.Score
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_correctPredictions

private int m_correctPredictions

m_targets

private int m_targets

m_predictions

private int m_predictions

m_precision

private double m_precision

m_recall

private double m_recall
Constructor Detail

FScore

public FScore()

FScore

public FScore(int targetCount)

FScore

public FScore(double precision,
              double recall)

FScore

public FScore(int correctPredictions,
              int targets,
              int predictions)
Method Detail

updatePR

private void updatePR()

recordCorrectPrediction

public void recordCorrectPrediction()

recordMistakenPrediction

public void recordMistakenPrediction()

setTargetCount

public void setTargetCount(int targets)

getPrecision

public double getPrecision()

getRecall

public double getRecall()

getF1

public double getF1()

getScoreDouble

public double getScoreDouble()
Specified by:
getScoreDouble in class Score

getScoreString

public java.lang.String getScoreString()
Specified by:
getScoreString in class Score