de.unima.alcomox.mapping
Class Characteristic

java.lang.Object
  extended by de.unima.alcomox.mapping.Characteristic

public class Characteristic
extends java.lang.Object

Characterises the relation between two Alignments in terms of recall, precision and f-value.


Constructor Summary
Characteristic()
          Constructs an empty characteristic which is a characteristic for an Alignment of cardinality zero.
Characteristic(Alignment Alignment, Alignment reference)
          Constructs a characteristic based by comparing two Alignments.
 
Method Summary
 double getFMeasure()
          Returns the f-measure.
 int getNumOfRulesCorrect()
           
 int getNumOfRulesGold()
           
 int getNumOfRulesMatcher()
           
 double getPrecision()
          Returns the precision.
 double getRecall()
          Returns the recall.
 void join(Characteristic c)
          Joins this Alignment with another Alignment by summing up relevant characteristics in absolute numbers.
static boolean strictEvaluationActive()
           
 java.lang.String toShortDesc()
           
 java.lang.String toString()
          Returns a string representation.
static void useDiffuseEvaluation()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Characteristic

public Characteristic()
Constructs an empty characteristic which is a characteristic for an Alignment of cardinality zero.


Characteristic

public Characteristic(Alignment Alignment,
                      Alignment reference)
Constructs a characteristic based by comparing two Alignments.

Parameters:
Alignment - The Alignment under discussion.
reference - The reference Alignment.
Throws:
ALCOMOException - Thrown if the namespaces of the Alignments differ.
Method Detail

join

public void join(Characteristic c)
Joins this Alignment with another Alignment by summing up relevant characteristics in absolute numbers. Larger matching problems are thus to a greater extent weighted.

Parameters:
c - The other charcteristic.

toString

public java.lang.String toString()
Returns a string representation.

Overrides:
toString in class java.lang.Object
Returns:
A string representation.

getFMeasure

public double getFMeasure()
Returns the f-measure.

Returns:
The f-measure.

getPrecision

public double getPrecision()
Returns the precision.

Returns:
The precision.

getRecall

public double getRecall()
Returns the recall.

Returns:
The recall.

getNumOfRulesCorrect

public int getNumOfRulesCorrect()

getNumOfRulesGold

public int getNumOfRulesGold()

getNumOfRulesMatcher

public int getNumOfRulesMatcher()

toShortDesc

public java.lang.String toShortDesc()

useDiffuseEvaluation

public static void useDiffuseEvaluation()

strictEvaluationActive

public static boolean strictEvaluationActive()