quadax.GenzMalikRule.integrate
- GenzMalikRule.integrate(fun: Callable[[...], Array], a: Array, b: Array, args: tuple[Any, ...]) tuple[Array, Array, Array, Array, Array]Source
Integrate a function over a box using a nested cubature rule.
- Parameters:
fun (
callable) – Function to integrate, should have a signature of the formfun(x, *args)-> float, Array, wherexhas shape(ndim,). Should be JAX transformable.a (
Array,shape(ndim,)) – Opposite corners of the box to integrate over. Must be finite.b (
Array,shape(ndim,)) – Opposite corners of the box to integrate over. Must be finite.args (
tuple, optional) – Extra arguments passed to fun.
- Returns:
y (
float,Array) – Estimate of the integral of fun over the box.err (
float) – Estimate of the absolute error in y from the embedded lower degree rule.y_abs (
float,Array) – Estimate of the integral of abs(fun) over the box.y_mmn (
float,Array) – Estimate of the integral of abs(fun - <fun>) over the box, where <fun> is the mean value of fun over the box.split (
Array,shape(ndim,)) – How much each axis contributes to the difficulty of the integrand.