pint.templates.lcfitters.hess_from_grad
- pint.templates.lcfitters.hess_from_grad(grad, par, step=0.001, iterations=2)[source]
Use gradient to compute hessian. Proceed iteratively to take steps roughly equal to the 1-sigma errors.
- The initial step can be:
[scalar] use the same step for the initial iteration [array] specify a step for each parameters.