This function performs the maximization step of the Expectation Maximization algorithm for Hidden Markov models.
EMaximization_HMmdl(theta, mdl, MSloglik_output, k)
List with new maximized parameters.
Vector of model parameters.
List with model attributes.
List with output from ExpectationM_HMmdl
.
Integer determining the number of regimes.