|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava3.alignment.template.AbstractScorer
public abstract class AbstractScorer
Implements common code for algorithms which compute a score.
Constructor Summary | |
---|---|
AbstractScorer()
|
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.biojava3.alignment.template.Scorer |
---|
getMaxScore, getMinScore, getScore |
Constructor Detail |
---|
public AbstractScorer()
Method Detail |
---|
public double getDistance()
Scorer
Scorer.getMaxScore()
- Scorer.getScore()
) /
(Scorer.getMaxScore()
- Scorer.getMinScore()
).
getDistance
in interface Scorer
public double getDistance(double scale)
Scorer
Scorer.getMaxScore()
-
Scorer.getScore()
) / (Scorer.getMaxScore()
- Scorer.getMinScore()
).
getDistance
in interface Scorer
scale
- maximum distance
public double getSimilarity()
Scorer
Scorer.getScore()
- Scorer.getMinScore()
) /
(Scorer.getMaxScore()
- Scorer.getMinScore()
).
getSimilarity
in interface Scorer
public double getSimilarity(double scale)
Scorer
Scorer.getScore()
-
Scorer.getMinScore()
) / (Scorer.getMaxScore()
- Scorer.getMinScore()
).
getSimilarity
in interface Scorer
scale
- maximum similarity
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |