Description Usage Arguments Format Value Author(s) References Examples

The Viterbi-algorithm computes the most probable path of states for a sequence of observations for a given Hidden Markov Model.

1 | ```
viterbi(hmm, observation)
``` |

`hmm ` |
A Hidden Markov Model. |

`observation ` |
A sequence of observations. |

Dimension and Format of the Arguments.

- hmm
A valid Hidden Markov Model, for example instantiated by

`initHMM`

.- observation
A vector of observations.

Return Value:

`viterbiPath ` |
A vector of strings, containing the most probable path of states. |

Lin Himmelmann <[email protected]>, Scientific Software Development

Lawrence R. Rabiner: A Tutorial on Hidden Markov Models and Selected Applications in Speech Recognition. Proceedings of the IEEE 77(2) p.257-286, 1989.

1 2 3 4 5 6 7 8 9 |

```
$States
[1] "A" "B"
$Symbols
[1] "L" "R"
$startProbs
A B
0.5 0.5
$transProbs
to
from A B
A 0.6 0.4
B 0.4 0.6
$emissionProbs
symbols
states L R
A 0.6 0.4
B 0.4 0.6
[1] "A" "A" "B" "B"
```

HMM documentation built on May 29, 2017, 11:45 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.