|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ov4j.comp.ComparisonResult<T>
public abstract class ComparisonResult<T>
Base class for comparing objects.
Constructor Summary | |
---|---|
ComparisonResult()
Constructor. |
Method Summary | ||
---|---|---|
abstract void |
compute()
Perform metric computation. |
|
abstract void |
fastCompute()
Perform fast computation, only setting precision to 1.0 to indicate that both items are the same or to anything else otherwise. |
|
static
|
findComparisonResultClass(C o)
Find class to use to compare instances of the given object. |
|
T |
getChanged()
|
|
java.lang.Object[] |
getFalseNegatives()
|
|
java.lang.Object[] |
getFalsePositives()
|
|
ComparisonResult<?>[] |
getMatches()
|
|
T |
getOriginal()
|
|
double |
getPrecision()
|
|
double |
getRecall()
|
|
int |
numFalseNegatives()
|
|
int |
numFalsePositives()
|
|
int |
numMatches()
|
|
void |
setChanged(T changed)
|
|
void |
setFalseNegatives(java.lang.Object[] falseNegatives)
|
|
void |
setFalsePositives(java.lang.Object[] falsePositives)
|
|
void |
setMatches(ComparisonResult<?>[] matches)
|
|
void |
setOriginal(T original)
|
|
void |
setPrecision(double precision)
|
|
void |
setRecall(double recall)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComparisonResult()
Method Detail |
---|
public static <C,T extends ComparisonResult<C>> java.lang.Class<T> findComparisonResultClass(C o) throws java.lang.ClassNotFoundException
o
- Object to be compared.
java.lang.ClassNotFoundException
public abstract void compute()
public abstract void fastCompute()
public T getChanged()
public java.lang.Object[] getFalseNegatives()
public java.lang.Object[] getFalsePositives()
public ComparisonResult<?>[] getMatches()
public T getOriginal()
public double getPrecision()
public double getRecall()
public int numFalseNegatives()
public int numFalsePositives()
public int numMatches()
public void setChanged(T changed)
changed
- The compared object to set.public void setFalseNegatives(java.lang.Object[] falseNegatives)
falseNegatives
- The falseNegatives to set.public void setFalsePositives(java.lang.Object[] falsePositives)
falsePositives
- The falsePositives to set.public void setMatches(ComparisonResult<?>[] matches)
matches
- The matches to set.public void setOriginal(T original)
original
- The original to set.public void setPrecision(double precision)
precision
- The precision to set.public void setRecall(double recall)
recall
- The recall to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |