{ } Raw JSON

bundles / scipy 1.17.1 / scipy / interpolate / _ppoly / integrate

fused_cython_function

scipy.interpolate._ppoly:integrate

Signature

def   integrate ( c x a b extrapolate out )

Summary

Compute integral over a piecewise polynomial.

Parameters

c : ndarray, shape (k, m, n)

Coefficients local polynomials of order k-1 in m intervals.

x : ndarray, shape (m+1,)

Breakpoints of polynomials

a : double

Start point of integration.

b : double

End point of integration.

extrapolate : bint, optional

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

out : ndarray, shape (n,)

Integral of the piecewise polynomial, assuming the polynomial is zero outside the range (x[0], x[-1]). This argument is modified in-place.

Aliases

  • scipy.interpolate._ppoly.integrate