|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfleischhacker.uni.thesis.calculator.Calculator
public class Calculator
This class provides methods to calculate the values of precision and recall for an alignment given a reference alignment.
Constructor Summary | |
---|---|
Calculator(Alignment alignment,
Alignment reference)
Initializes the Calculator class with the given alignments. |
Method Summary | |
---|---|
Alignment |
getIntersection()
Returns the intersection calculated for computing precision and recall as an alignment. |
float |
getPrecision()
Returns the value for the precision of the alignment with regard to the reference alignment given at creation of this calculator class. |
float |
getRecall()
Returns the value for the recall of the alignment with regard to the reference alignment given at creation of this calculator class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Calculator(Alignment alignment, Alignment reference)
alignment
- alignment to evaluatereference
- alignment to use as referenceMethod Detail |
---|
public float getPrecision()
public float getRecall()
public Alignment getIntersection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |