scipy.interpolate.PPoly.integrate

PPoly.integrate(a, b, extrapolate=None)[source]

Compute a definite integral over a piecewise polynomial.

Parameters:

a : float

Lower integration bound

b : float

Upper integration bound

extrapolate : bool, optional

Whether to extrapolate to ouf-of-bounds points based on first and last intervals, or to return NaNs.

Returns:

ig : array_like

Definite integral of the piecewise polynomial over [a, b]