v5 - updated the description of the function to fix a typo, thanks to serkany88 for catching the little bugger :p
Updated:
viterbi(observations, transitions, emissions, initial_distribution)
Calculate most probable path in a Markov model.
Parameters:
observations (array<int>): array<int> . Observation states data.
transitions (matrix<float>): matrix<float> . Transition probability table, (HxH, H:Hidden states).
emissions (matrix<float>): matrix<float> . Emission probability table, (HxO, O:Observed states).
initial_distribution (array<float>): array<float> . Initial probability distribution for the hidden states.
Returns: array<int>. Most probable path.