A function to compute the target and gradient for the Bayesian spatial LGCP
target.and.grad.spatialPlusPars(
GP,
prior,
Z,
Zt,
eta,
beta,
nis,
cellarea,
spatial,
gradtrunc
)
an object created using GPrealisation
the model priors, created using lgcpPrior
the design matrix on the FFT grid
transpose of the design matrix
the paramters, eta
the parameters, beta
cell counts on the FFT grid
the cell area
poisson offset
the gradient truncation parameter
the target and graient for this model