quadax.AbstractCubatureRule.integrate
- abstractmethod AbstractCubatureRule.integrate(fun: Callable[[...], Array], a: Array, b: Array, args: tuple[Any, ...]) tuple[Array, Array, Array, Array, Array]Source
Integrate
fun(x, *args)over the box with corners a and b.- 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.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, for choosing which axis to cut when subdividing. Only the ordering of its entries is meaningful, and it is largest for the axis worth cutting.