public abstract class AbstractScorer extends Object implements Scorer
Constructor and Description |
---|
AbstractScorer() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMaxScore, getMinScore, getScore
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 distancepublic 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 similarityCopyright © 2000–2016 BioJava. All rights reserved.