Package org.biojava.bio.dp.onehead
Class SingleDPMatrix
- java.lang.Object
-
- org.biojava.bio.dp.onehead.SingleDPMatrix
-
- All Implemented Interfaces:
Serializable
,DPMatrix
public class SingleDPMatrix extends Object implements DPMatrix, Serializable
The dynamic programming matrix for a single sequence.- Author:
- Matthew Pocock, Lukas Kall
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected MarkovModel
model
protected double
score
double[][]
scores
protected State[]
states
protected SymbolList[]
symList
-
Constructor Summary
Constructors Constructor Description SingleDPMatrix(DP dp, SymbolList symList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getCell(int[] index)
double
getScore()
MarkovModel
model()
void
setScore(double score)
State[]
states()
SymbolList[]
symList()
-
-
-
Field Detail
-
model
protected final MarkovModel model
-
symList
protected final SymbolList[] symList
-
scores
public final double[][] scores
-
score
protected double score
-
-
Constructor Detail
-
SingleDPMatrix
public SingleDPMatrix(DP dp, SymbolList symList)
-
-
Method Detail
-
model
public MarkovModel model()
-
symList
public SymbolList[] symList()
-
setScore
public void setScore(double score)
-
getCell
public double getCell(int[] index) throws IndexOutOfBoundsException
- Specified by:
getCell
in interfaceDPMatrix
- Throws:
IndexOutOfBoundsException
-
-