\HeaderA{Viterbi.five}{A scaled Viterbi algorithm for allocating clones to one of five underlying states.}{Viterbi.five}
\keyword{misc}{Viterbi.five}
\begin{Description}\relax
A work horse of the fit.model function. It uses a scaled version of the Viterbi algorithm to allocate clones to one of five underlying states as fitted 
using a heterogeneous HMM.
\end{Description}
\begin{Usage}
\begin{verbatim}
Viterbi.five(y, BFGS.output, BFGS.trans.mat)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{y}] the data to be allocated to states
\item[\code{BFGS.output}] The output obtained from the find.param.five function 
\item[\code{BFGS.trans.mat}] A list of the heterogeneous transition matrices  
\end{ldescription}
\end{Arguments}
\begin{Value}
A vector of numbers indicating to which state clones are allocated to.
\end{Value}
\begin{Author}\relax
John Marioni
\end{Author}

