integrate
scipy.interpolate.CubicSpline.
- CubicSpline.integrate(a, b, extrapolate=None)
Compute a definite integral over a piecewise polynomial.
- Parameters:
- a : float
Lower integration bound
- b : float
Compute a definite integral over a piecewise polynomial.
Lower integration bound
Upper integration bound
If bool, determines whether to extrapolate to out-of-bounds points based on first and last intervals, or to return NaNs. If ‘periodic’, periodic extrapolation is used. If None (default), use self.extrapolate.
Definite integral of the piecewise polynomial over [a, b]