|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.tuebingen.uni.sfs.germanet.relatedness.RelatednessResult
public class RelatednessResult
Represents the result of a relatedness mesaure (class Relatedness). Contains the name of the measure and the result and can calculate the normalized result (mapping into [0,1]).
| Constructor Summary | |
|---|---|
RelatednessResult(java.lang.String name,
double value,
java.lang.Object[] arguments)
Constructor taking name of the relatedness measure used and result value. |
|
| Method Summary | |
|---|---|
double |
getNormalizedResult()
Returns a mapping of the result value into [0,1], where 0 is no similarity and 1 is identity. |
double |
getResult()
Returns the double value calculated by this relatedness measure. |
java.lang.String |
toString()
The return String contains the name of the measure, the result value (not normalized) and the number of arguments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RelatednessResult(java.lang.String name,
double value,
java.lang.Object[] arguments)
name - the name of the relatedness measure usedvalue - the result of this relatedness measurearguments - additional args for lesk and ics; null for path measures| Method Detail |
|---|
public double getResult()
public double getNormalizedResult()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||