bundles / scipy latest / scipy / integrate / _rules / _base / FixedRule / estimate
function
scipy.integrate._rules._base:FixedRule.estimate
source: build-install/usr/lib/python3.14/site-packages/scipy/integrate/_rules/_base.py:200
Signature
def estimate(self, f, a, b, args = ())Summary
Calculate estimate of integral of f in rectangular region described by corners a and b as sum(weights * f(nodes)).
Extended Summary
Nodes and weights will automatically be adjusted from calculating integrals over to .
Parameters
f: callableFunction to integrate.
fmust have the signature::f(xndarray, *args) -> ndarray
fshould accept arraysxof shape::(npoints, ndim)
and output arrays of shape::
(npoints, output_dim_1, ..., output_dim_n)
In this case, estimate will return arrays of shape::
(output_dim_1, ..., output_dim_n)
a, b: ndarrayLower and upper limits of integration as rank-1 arrays specifying the left and right endpoints of the intervals being integrated over. Infinite limits are currently not supported.
args: tuple, optionalAdditional positional args passed to
f, if any.
Returns
est: ndarrayResult of estimation. If
freturns arrays of shape(npoints, output_dim_1, ..., output_dim_n), then est will be of shape(output_dim_1, ..., output_dim_n).
Aliases
scipy.integrate._rules.FixedRule.estimate