de.fzi.kadmos.evaluator
Interface PrecRecEvaluator

All Superinterfaces:
Evaluator
All Known Implementing Classes:
PrecRecEvaluatorImpl

public interface PrecRecEvaluator
extends Evaluator

Interface representing an alignment evaluator for precision and recall measures. Precision represents the percentage of found correspondences that are correct wrt. to the reference alignment. Recall represents the percentage of correctly found correspondences out of the total number of correct correspondences wrt. to the reference alignment. F-Measure represents the harmonic mean of precision and recall.

Since:
1.0.1
Version:
1.3.0
Author:
Juergen Bock

Method Summary
 double getFMeasure(Alignment alignment)
          Computes and returns the F-Measure of an alignment.
 double getPrecision(Alignment alignment)
          Computes and returns the precision of an alignment.
 double getRecall(Alignment alignment)
          Computes and returns the recall of an alignment.
 

Method Detail

getPrecision

double getPrecision(Alignment alignment)
                    throws IncompatibleAlignmentsException
Computes and returns the precision of an alignment.

Parameters:
alignment - Alignment, whose precision is to be determined.
Returns:
Precision (value between 0 and 1).
Throws:
IncompatibleAlignmentsException - if the alignment refers to different ontologies than the reference alignment.
Since:
1.0.1

getRecall

double getRecall(Alignment alignment)
                 throws IncompatibleAlignmentsException
Computes and returns the recall of an alignment.

Parameters:
alignment - Alignment, whose recall is to be determined.
Returns:
Recall (value between 0 and 1).
Throws:
IncompatibleAlignmentsException - if the alignment refers to different ontologies than the reference alignment.
Since:
1.0.1

getFMeasure

double getFMeasure(Alignment alignment)
                   throws IncompatibleAlignmentsException
Computes and returns the F-Measure of an alignment.

Parameters:
alignment - Alignment, whose F-Measure is to be determined.
Returns:
F-Measure (value between 0 and 1).
Throws:
IncompatibleAlignmentsException - if the alignment refers to different ontologies than the reference alignment.
Since:
1.0.1


Copyright © 2012. All Rights Reserved.