R/Mstep.pois.R

Defines functions Mstep.pois

Documented in Mstep.pois

Mstep.pois <- function(x, cond, pm, pn){
    lambda <- as.numeric(matrix(x, nrow=1) %*% cond$u)/
                  apply(cond$u, MARGIN=2, FUN=sum)
    return(list(lambda=lambda))
}

Try the HiddenMarkov package in your browser

Any scripts or data that you put into this service are public.

HiddenMarkov documentation built on April 27, 2021, 5:06 p.m.