gov.sandia.cognition.text.evaluation
Interface PrecisionRecallPair

All Superinterfaces:
Pair<Double,Double>, Serializable
All Known Implementing Classes:
DefaultPrecisionRecallPair

public interface PrecisionRecallPair
extends Pair<Double,Double>

A pair of precision and recall values. Typically used for evaluating the performance of an information retrieval algorithm.

Since:
3.0
Author:
Justin Basilico

Method Summary
 double getPrecision()
          Gets the precision.
 double getRecall()
          Gets the recall.
 
Methods inherited from interface gov.sandia.cognition.util.Pair
getFirst, getSecond
 

Method Detail

getPrecision

double getPrecision()
Gets the precision. It is a value between 0.0 and 1.0, inclusive. It is equal to: tp / (tp + fp).

Returns:
The precision.

getRecall

double getRecall()
Gets the recall. It is a value between 0.0 and 1.0, inclusive. It is equal to: tp / (tp + fn).

Returns:
The recall.