Evaluate the log-density of the measurement process by calling measurement process density functions via external Xptr.

CALL_D_MEASURE(
  emitmat,
  emit_inds,
  record_ind,
  record,
  state,
  parameters,
  constants,
  tcovar,
  d_meas_ptr
)

Arguments

emitmat

matrix of emission probabilities

emit_inds

logical vector of measurement compartments to simulate

record_ind

row in the observation and emission matrices

record

vector of observed counts

state

numeric vector of latent comaprtment counts

parameters

numeric vector of parameter values

constants

numeric vector of constants

tcovar

numeric vector of time-varying covariate values

d_meas_ptr

external pointer to measurement process simulation function