Re-estimates the parameters of a normal emission distribution as part of the EM algorithm for HMMs and HSMMs.
This is called by the hmm
and hsmm
functions. It is a suitable prototype function for users
wishing to design their own emission distributions.
mstep.norm(x, wt)
Returns the emission
slot of a hmmspec
or hsmmspec
object
Vector of length J contain the means
Vector of length J containing the variances
A vector of observed values
A T x J matrix of weights. Column entries are the weights for respective states.
Jared O'Connell jaredoconnell@gmail.com
Users may write functions that take the same arguments and return the same values for their own custom emission distributions.