A function to compute the target and gradient for the Bayesian aggregated point process model. Not for general use.
target.and.grad.AggregateSpatialPlusPars(
GP,
prior,
Z,
Zt,
eta,
beta,
nis,
cellarea,
spatial,
gradtrunc
)
an object constructed using GPrealisation
the prior, created using lgcpPrior
the design matrix on the full FFT grid
the transpose of the design matrix
the model parameter, eta
the model parameters, beta
cell counts on the FFT grid
the cell area
the poisson offset
the gradient truncation parameter
the target and gradient