public abstract class GraphEvaluator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
GraphEvaluator.EvalCell |
Modifier and Type | Field and Description |
---|---|
protected java.util.SortedSet<GraphEvaluator.EvalCell> |
cellSet |
boolean |
invalid |
(package private) static org.slf4j.Logger |
logger |
protected int |
nbexpected |
java.util.Vector<Pair> |
points |
protected int |
STEP
The resolution of the provided result: by STEP steps
|
Constructor and Description |
---|
GraphEvaluator()
Creation:
A priori, evaluators can deal with any kind of alignments.
|
GraphEvaluator(boolean ascending) |
Modifier and Type | Method and Description |
---|---|
abstract java.util.Vector<Pair> |
eval() |
abstract java.util.Vector<Pair> |
eval(java.util.Properties params) |
abstract double |
getGlobalResult()
Retuns a simple global evaluation measure if any
|
int |
getStep() |
void |
ingest(Alignment al,
Alignment ref)
Integrate the cells of the alignment to evaluate in cellSet if the cell is found in the reference alignment
|
protected void |
initCellSet(boolean ascending) |
boolean |
isCorrect(Cell c,
Alignment ref)
Tells if the cell is found in the reference alignment
(without relation consideration)
|
boolean |
isValid() |
int |
nbCells() |
void |
setStep(int i) |
void |
writePlot(java.io.PrintWriter writer)
Write out the final interpolated recall/precision graph data.
|
void |
writeXMLMap(java.io.PrintWriter writer)
This output the resulting plot in XML
|
abstract java.lang.String |
xlabel() |
abstract java.lang.String |
ylabel() |
static final org.slf4j.Logger logger
protected int STEP
protected int nbexpected
protected java.util.SortedSet<GraphEvaluator.EvalCell> cellSet
public java.util.Vector<Pair> points
public boolean invalid
public GraphEvaluator()
public GraphEvaluator(boolean ascending)
public abstract java.util.Vector<Pair> eval() throws AlignmentException
AlignmentException
- when something goes wrongpublic abstract java.util.Vector<Pair> eval(java.util.Properties params) throws AlignmentException
params:
- display parametersAlignmentException
- when something goes wrongpublic abstract double getGlobalResult()
public void setStep(int i)
public int getStep()
protected void initCellSet(boolean ascending)
public void ingest(Alignment al, Alignment ref)
al:
- the alignment to evaluateref:
- the reference alignmentpublic boolean isValid()
public int nbCells()
public boolean isCorrect(Cell c, Alignment ref)
c:
- the cell to considerref:
- the reference alignmentpublic void writeXMLMap(java.io.PrintWriter writer) throws java.io.IOException
writer:
- the writer where to print the resultjava.io.IOException
- when something goes wrongpublic void writePlot(java.io.PrintWriter writer)
writer:
- the writer where to print the resultpublic abstract java.lang.String xlabel()
public abstract java.lang.String ylabel()
(C) INRIA & friends, 2003-2020