Simulate from the measurement process by calling measurement process functions via external Xptr.

CALL_R_MEASURE(
  obsmat,
  emit_inds,
  record_ind,
  state,
  parameters,
  constants,
  tcovar,
  r_meas_ptr
)

Arguments

obsmat

observation matrix

emit_inds

logical vector of measurement compartments to simulate

record_ind

row in the observation matrix

state

numeric vector of comaprtment counts

parameters

numeric vector of parameter values

constants

numeric vector of constants

tcovar

numeric vector of time-varying covariate values

r_meas_ptr

external pointer to measurement process simulation function