gradient for negative log likelihood function from zero-inflated Poisson hidden Markov model without covariates, where zero-inflation only happens in state 1
grad_zipnegloglik_nocov_cont(parm, M, y, ntimes, timeindex, udiff)
working parameters
number of hidden states
observed series
length of the observed series
vector of observed time points
unique time intervals
gradient for negative log likelihood