|
Alignment API and Server 4.1.${version.update} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.inrialpes.exmo.align.impl.eval.GraphEvaluator
public abstract class GraphEvaluator
GraphEvaluator: an abstraction that is used for providing evaluation curves instead of values (or sets of values) Pair: only used for recording sets of points in a curve GraphEvaluator is used (generically) in the following way: - create a GraphEvaluator (new GraphEvaluator) - fill it with the set of results that you want to evaluate (.ingest( Alignment, Alignment) and this repetively - Finally create plot (.eval() ) This abstract class provides the ingest method but not eval which has to be implemented in subclasses. ingest can be rewritten as well.
Field Summary | |
---|---|
protected SortedSet<EvalCell> |
cellSet
|
boolean |
invalid
|
protected int |
nbexpected
|
Vector<Pair> |
points
|
protected int |
STEP
The resolution of the provided result: by STEP steps |
Constructor Summary | |
---|---|
GraphEvaluator()
Creation: A priori, evaluators can deal with any kind of alignments. |
|
GraphEvaluator(boolean ascending)
|
Method Summary | |
---|---|
abstract Vector<Pair> |
eval()
Returns the points to display in a graph |
abstract Vector<Pair> |
eval(Properties params)
Returns the points to display in a graph |
abstract double |
getGlobalResult()
Retuns a simple global evaluation measure if any |
int |
getStep()
|
void |
ingest(Alignment al,
Alignment ref)
|
protected void |
initCellSet(boolean ascending)
|
boolean |
isCorrect(Cell c,
Alignment ref)
|
boolean |
isValid()
|
int |
nbCells()
|
void |
setStep(int i)
|
void |
writePlot(PrintWriter writer)
|
void |
writeXMLMap(PrintWriter writer)
This output the resulting plot in XML |
abstract String |
xlabel()
|
abstract String |
ylabel()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int STEP
protected int nbexpected
protected SortedSet<EvalCell> cellSet
public Vector<Pair> points
public boolean invalid
Constructor Detail |
---|
public GraphEvaluator()
public GraphEvaluator(boolean ascending)
Method Detail |
---|
public abstract Vector<Pair> eval() throws AlignmentException
AlignmentException
public abstract Vector<Pair> eval(Properties params) throws AlignmentException
AlignmentException
public abstract double getGlobalResult()
public void setStep(int i)
public int getStep()
protected void initCellSet(boolean ascending)
public void ingest(Alignment al, Alignment ref)
public boolean isValid()
public int nbCells()
public boolean isCorrect(Cell c, Alignment ref)
public void writeXMLMap(PrintWriter writer) throws IOException
IOException
public void writePlot(PrintWriter writer)
public abstract String xlabel()
public abstract String ylabel()
|
Alignment API and Server 4.1.${version.update} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |