Package org.biojava.bio.dp
Interface ScoreType
-
- All Known Implementing Classes:
ScoreType.NullModel
,ScoreType.Odds
,ScoreType.Probability
public interface ScoreType
This class computes the score that is used to be used in a DP optimisation.- Author:
- Matthew Pocock
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ScoreType.NullModel
In this class, calculateScore returns the probability of a Symbol being emitted by the null model.static class
ScoreType.Odds
In this class, calculateScore returns the odds ratio of a symbol being emitted.static class
ScoreType.Probability
In this class, calculateScore returns the probability of a Symbol being emitted.
-
Field Summary
Fields Modifier and Type Field Description static ScoreType
NULL_MODEL
static ScoreType
ODDS
static ScoreType
PROBABILITY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
calculateScore(Distribution dist, Symbol sym)
Calculates the score associated with a distribution and a symbol.
-
-
-
Field Detail
-
PROBABILITY
static final ScoreType PROBABILITY
-
NULL_MODEL
static final ScoreType NULL_MODEL
-
-
Method Detail
-
calculateScore
double calculateScore(Distribution dist, Symbol sym) throws IllegalSymbolException
Calculates the score associated with a distribution and a symbol.- Throws:
IllegalSymbolException
-
-