bundles / scipy latest / scipy / interpolate / _interpolate / NdPPoly / integrate_1d
function
scipy.interpolate._interpolate:NdPPoly.integrate_1d
Signature
def integrate_1d ( self , a , b , axis , extrapolate = None ) Summary
Compute NdPPoly representation for one dimensional definite integral
Extended Summary
The result is a piecewise polynomial representing the integral:
where the dimension integrated over is specified with the axis parameter.
Parameters
a, b: floatLower and upper bound for integration.
axis: intDimension over which to compute the 1-D integrals
extrapolate: bool, optionalWhether to extrapolate to out-of-bounds points based on first and last intervals, or to return NaNs.
Returns
ig: NdPPoly or array-likeDefinite integral of the piecewise polynomial over [a, b]. If the polynomial was 1D, an array is returned, otherwise, an NdPPoly object.
Aliases
-
scipy.interpolate.NdPPoly.integrate_1d