Package org.biojava.bio.dp.onehead
Class SmallCursor
java.lang.Object
org.biojava.bio.dp.onehead.SmallCursor
- All Implemented Interfaces:
DPCursor
Constant-memory implementation of single-head DP cursor.
- Author:
- Matthew Pocock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance()
Advance.boolean
Can we advance?double[]
The current column of the matrix.The current symbol.double[]
lastCol()
The previous column.lastRes()
The previous symbol.int
length()
The length of the sequence.symList()
The symbol list being looped over.
-
Constructor Details
-
SmallCursor
-
-
Method Details
-
symList
Description copied from interface:DPCursor
The symbol list being looped over. -
length
Description copied from interface:DPCursor
The length of the sequence.
The matrix may allocate length+1 columns.
-
currentCol
Description copied from interface:DPCursor
The current column of the matrix. -
lastCol
Description copied from interface:DPCursor
The previous column. -
advance
Description copied from interface:DPCursor
Advance. -
currentRes
Description copied from interface:DPCursor
The current symbol.- Specified by:
currentRes
in interfaceDPCursor
-
lastRes
Description copied from interface:DPCursor
The previous symbol. -
canAdvance
public boolean canAdvance()Description copied from interface:DPCursor
Can we advance?- Specified by:
canAdvance
in interfaceDPCursor
-