pint.templates.lcprimitives.check_derivative

pint.templates.lcprimitives.check_derivative(func, n=1000, atol=1e-08, rtol=1e-05, order=1, eps=1e-07, quiet=False)[source]

Test derivative function with a set of MC photons. This works with either LCPrimitive or LCTemplate objects.