Package org.biojava.bio.dp.twohead
Class DPInterpreter
- java.lang.Object
-
- org.biojava.bio.dp.twohead.DPInterpreter
-
- All Implemented Interfaces:
Serializable,CellCalculatorFactory
public class DPInterpreter extends Object implements CellCalculatorFactory, Serializable
- Author:
- Matthew Pocock, Thomas Down
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDPInterpreter.Maker
-
Constructor Summary
Constructors Constructor Description DPInterpreter(DP dp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CellCalculatorbackwards(ScoreType scoreType)CellCalculatorforwards(ScoreType scoreType)CellCalculatorviterbi(ScoreType scoreType, BackPointer terminal)
-
-
-
Constructor Detail
-
DPInterpreter
public DPInterpreter(DP dp)
-
-
Method Detail
-
forwards
public CellCalculator forwards(ScoreType scoreType) throws IllegalSymbolException, IllegalAlphabetException, IllegalTransitionException
- Specified by:
forwardsin interfaceCellCalculatorFactory- Throws:
IllegalSymbolExceptionIllegalAlphabetExceptionIllegalTransitionException
-
backwards
public CellCalculator backwards(ScoreType scoreType) throws IllegalSymbolException, IllegalAlphabetException, IllegalTransitionException
- Specified by:
backwardsin interfaceCellCalculatorFactory- Throws:
IllegalSymbolExceptionIllegalAlphabetExceptionIllegalTransitionException
-
viterbi
public CellCalculator viterbi(ScoreType scoreType, BackPointer terminal) throws IllegalSymbolException, IllegalAlphabetException, IllegalTransitionException
- Specified by:
viterbiin interfaceCellCalculatorFactory- Throws:
IllegalSymbolExceptionIllegalAlphabetExceptionIllegalTransitionException
-
-