|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jflexcrf.Viterbi
public class Viterbi
The Class Viterbi.
Nested Class Summary | |
---|---|
class |
Viterbi.PairDblInt
The Class PairDblInt. |
Field Summary | |
---|---|
Viterbi.PairDblInt[][] |
memory
The memory. |
int |
memorySize
The memory size. |
Model |
model
The model. |
Constructor Summary | |
---|---|
Viterbi()
Instantiates a new viterbi. |
Method Summary | |
---|---|
void |
allocateMemory(int memorySize)
Allocate memory. |
void |
computeMi()
Compute mi. |
void |
computeVi(java.util.List seq,
int pos,
DoubleVector Vi,
boolean isExp)
Compute vi. |
void |
divide(Viterbi.PairDblInt[] cols,
double val)
Divide. |
int |
findMax(Viterbi.PairDblInt[] cols)
Find max. |
void |
init(Model model)
Inits the. |
double |
sum(Viterbi.PairDblInt[] cols)
Sum. |
void |
viterbiInference(java.util.List seq)
Viterbi inference. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Model model
public int memorySize
public Viterbi.PairDblInt[][] memory
Constructor Detail |
---|
public Viterbi()
Method Detail |
---|
public void init(Model model)
model
- the modelpublic void allocateMemory(int memorySize)
memorySize
- the memory sizepublic void computeMi()
public void computeVi(java.util.List seq, int pos, DoubleVector Vi, boolean isExp)
seq
- the seqpos
- the posVi
- the viisExp
- the is exppublic double sum(Viterbi.PairDblInt[] cols)
cols
- the cols
public void divide(Viterbi.PairDblInt[] cols, double val)
cols
- the colsval
- the valpublic int findMax(Viterbi.PairDblInt[] cols)
cols
- the cols
public void viterbiInference(java.util.List seq)
seq
- the seq
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |