@PublicationReference(author="Wikipedia", title="Precision and Recall", type=WebPage, url="http://en.wikipedia.org/wiki/Precision_and_recall", year=2009) public class DefaultPrecisionRecallPair extends AbstractCloneableSerializable implements PrecisionRecallPair
PrecisionRecallPair interface.| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_PRECISION
The default precision is 0.0.
|
static double |
DEFAULT_RECALL
The default recall is 0.0.
|
| Constructor and Description |
|---|
DefaultPrecisionRecallPair()
Creates a new
DefaultPrecisionRecallPair. |
DefaultPrecisionRecallPair(double precision,
double recall)
Creates a new
DefaultPrecisionRecallPair. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
getFirst()
Gets the first element, which is the precision.
|
double |
getPrecision()
Gets the precision.
|
double |
getRecall()
Gets the recall.
|
java.lang.Double |
getSecond()
Gets the second element, which is the recall.
|
void |
setPrecision(double precision)
Sets the precision.
|
void |
setRecall(double recall)
Sets the recall.
|
java.lang.String |
toString() |
clonepublic static final double DEFAULT_PRECISION
public static final double DEFAULT_RECALL
public DefaultPrecisionRecallPair()
DefaultPrecisionRecallPair.public DefaultPrecisionRecallPair(double precision,
double recall)
DefaultPrecisionRecallPair.precision - The precision. Must be between 0.0 and 1.0, inclusive.recall - The recall. Must be between 0.0 and 1.0, inclusive.public double getPrecision()
PrecisionRecallPairgetPrecision in interface PrecisionRecallPairpublic void setPrecision(double precision)
precision - The precision.public double getRecall()
PrecisionRecallPairgetRecall in interface PrecisionRecallPairpublic void setRecall(double recall)
recall - The recall.public java.lang.Double getFirst()
public java.lang.Double getSecond()
public java.lang.String toString()
toString in class java.lang.Object