Smooth delta functions to compute Jacobian and Hessian from samples

If the function G isn’t changing much among your samples, so that it is well approximated by a low-order polynomial, then I would just try a polynomial or radial-basis-function fit.