|
Alignment API and Server 4.2.${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.BasicEvaluator
fr.inrialpes.exmo.align.impl.eval.SymMeanEvaluator
public class SymMeanEvaluator
Evaluate proximity between two alignments. This function implements a simple weighted symetric difference. The highest the value the closest are the alignments: 1: the alignments are exactly the same, with the same strenghts 0: the alignments do not share a single cell The result is 2*w(A\cap B)/|A|+|B| in which w(.) is the sum of the complement of the strength diference between same cells i.e., \Sum_{c\in A, c'\in R; c=c'} (1 - | c.strength - c'.strength |)
Field Summary | |
---|---|
private double |
classScore
|
private double |
indScore
|
private double |
propScore
|
Fields inherited from class fr.inrialpes.exmo.align.impl.BasicEvaluator |
---|
align1, align2, result |
Constructor Summary | |
---|---|
SymMeanEvaluator(Alignment align1,
Alignment align2)
Creation |
Method Summary | |
---|---|
double |
eval(Properties params)
Run the evaluation between the two ontologies. |
double |
eval(Properties params,
Object cache)
Run the evaluation between the two ontologies. |
Properties |
getResults()
Returns the results as a property list not further described but suitable for display. |
void |
write(PrintWriter writer)
Outputs (in XML/RDF) a full report on the proximity of the two ontologies. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private double classScore
private double propScore
private double indScore
Constructor Detail |
---|
public SymMeanEvaluator(Alignment align1, Alignment align2) throws AlignmentException
AlignmentException
Method Detail |
---|
public double eval(Properties params) throws AlignmentException
Evaluator
eval
in interface Evaluator
AlignmentException
public double eval(Properties params, Object cache) throws AlignmentException
Evaluator
eval
in interface Evaluator
AlignmentException
public void write(PrintWriter writer) throws IOException
Evaluator
write
in interface Evaluator
write
in class BasicEvaluator
IOException
public Properties getResults()
Evaluator
getResults
in interface Evaluator
|
Alignment API and Server 4.2.${version.update} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |