Description Usage Arguments Value
Standard viterbi algorithm in the log space
1 | viterbi(initP, trans, lliks, seqlens)
|
initP |
matrix of initial probabilities: each column corresponds to a sequence |
trans |
transition matrix (rows are previous state, columns are next state) |
lliks |
matrix with emission probabilities for each datapoint and each state. Columns are datapoints and rows are states. |
seqlens |
length of each subsequence of datapoints (set this to ncol(lliks) if there is only one sequence). |
a list with the following arguments:
vpath |
viterbi path |
vllik |
log-likelihood of the viterbi path |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.