A function to compute the target and gradient for the Bayesian spatiotemporal LGCP.
target.and.grad.SpatioTemporalPlusPars(
GP,
prior,
Z,
Zt,
eta,
beta,
nis,
cellarea,
spatial,
gradtrunc,
ETA0,
tdiff
)
an object created using the stGPrealisation function
the priors for hte model, created using lgcpPrior
the design matrix on the FFT grid
the transpose of the design matrix
the paramers eta
the parameters beta
the cell counts on the FFT grid
the cell area
the poisson offset
the gradient truncation parameter
the initial value of eta
vector of time differences between time points
the target and gradient for the spatiotemporal model.