|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.unima.alcomox.mapping.Characteristic
public class Characteristic
Characterises the relation between two mappings in terms of recall, precision and f-value.
Constructor Summary | |
---|---|
|
Characteristic()
Constructs an empty characteristic which is a characteristic for an mapping of cardinality zero. |
protected |
Characteristic(int numOfRulesGold,
int numOfRulesMatcher,
int numOfRulesCorrect)
Constructs a characteristic. |
|
Characteristic(Mapping mapping,
Mapping reference)
Constructs a characteristic based by comparing two mappings. |
Method Summary | |
---|---|
static double |
computeFFromPR(double precision,
double recall)
|
java.lang.String |
getF()
|
double |
getFMeasure()
Returns the f-measure. |
int |
getNumOfRulesCorrect()
|
int |
getNumOfRulesGold()
|
int |
getNumOfRulesMatcher()
|
java.lang.String |
getP()
|
double |
getPrecision()
Returns the precision. |
java.lang.String |
getR()
|
double |
getRecall()
Returns the recall. |
void |
join(Characteristic c)
Joins this mapping with another mapping 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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Characteristic()
protected Characteristic(int numOfRulesGold, int numOfRulesMatcher, int numOfRulesCorrect)
numOfRulesGold
- Number of correspondences of the reference mapping.numOfRulesMatcher
- Number of correspondences in the mapping under discussion
(in most cases the mapping generated by a matching system).numOfRulesCorrect
- Number of correspondences that are both the reference mapping and the
generated mapping.public Characteristic(Mapping mapping, Mapping reference)
mapping
- The mapping under discussion.reference
- The reference mapping.
ALCOMOException
- Thrown if the namespaces of the mappings differ.Method Detail |
---|
public void join(Characteristic c)
c
- The other charcteristic.public java.lang.String toString()
toString
in class java.lang.Object
public double getFMeasure()
public static double computeFFromPR(double precision, double recall)
public java.lang.String getF()
public double getPrecision()
public java.lang.String getP()
public double getRecall()
public java.lang.String getR()
public int getNumOfRulesCorrect()
public int getNumOfRulesGold()
public int getNumOfRulesMatcher()
public java.lang.String toShortDesc()
public static void useDiffuseEvaluation()
public static boolean strictEvaluationActive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |