in reply to Re^3: Viterbi application
in thread Viterbi application

I stopped when I realized, for what seemed like the 10th consecutive try, that this code was not going to do what I wanted either

I updated the original post with where I was intending to go with the min() line, however the code is not really doing the right thing

My main problem is I cannot seem to translate the toy examples of viterbi into a piece of code that works regardless of the number of nodes in each row.

Replies are listed 'Best First'.
Re^5: Viterbi application
by kcott (Archbishop) on Apr 06, 2014 at 23:47 UTC
    "I updated the original post ..."

    Updating your post is absolutely fine but please do indicate what you've changed. Not doing so often renders responses meaningless or makes it look like the person replying hasn't read your post correctly.

    In this particular case, a simple note to say you added ,${$vit_distance[$i]}+${$distance_mat[$i]}[$j]) to the min() function would suffice.

    All this is explained in more detail in "How do I change/delete my post?".

    -- Ken

      I understand your point. Noted for future posts, and fixed in this one