FEMdensity function

Evaluate the function value and gradient for a penalized likelihood estimate of spatial density.