Skip to main content
. 2016 Jan 28;16(2):161. doi: 10.3390/s16020161
Algorithm 2. The variable-length MEMM process
For l=1,...,Lmax /* Lmax is the largest step count */
  For c=1,2,...,C
  Calculate Pnl+1:n(c)=maxP(ycnl+1,...,ycn|xnl+1:n);
  End
  If maxPnl+1:n(c) is significantly larger than others
   return argmaxc Pnl+1:n(c);
End
End
return argmaxc Pnl+1:n(c);