|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Scorer
Defines an algorithm which computes a score.
Method Summary | |
---|---|
double |
getDistance()
Returns score as a distance between 0.0 and 1.0. |
double |
getDistance(double scale)
Returns score as a distance between 0.0 and scale. |
int |
getMaxScore()
Returns maximum possible score. |
int |
getMinScore()
Returns minimum possible score. |
int |
getScore()
Returns score resulting from algorithm. |
double |
getSimilarity()
Returns score as a similarity between 0.0 and 1.0. |
double |
getSimilarity(double scale)
Returns score as a similarity between 0.0 and scale. |
Method Detail |
---|
double getDistance()
getMaxScore()
- getScore()
) /
(getMaxScore()
- getMinScore()
).
double getDistance(double scale)
getMaxScore()
-
getScore()
) / (getMaxScore()
- getMinScore()
).
scale
- maximum distance
int getMaxScore()
int getMinScore()
int getScore()
getScore()
- getMinScore()
) / (getMaxScore()
- getMinScore()
).
double getSimilarity()
getScore()
- getMinScore()
) /
(getMaxScore()
- getMinScore()
).
double getSimilarity(double scale)
getScore()
-
getMinScore()
) / (getMaxScore()
- getMinScore()
).
scale
- maximum similarity
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |