scipy.interpolate.splint¶

scipy.interpolate.
splint
(a, b, tck, full_output=0)[source]¶ Evaluate the definite integral of a Bspline between two given points.
Parameters: a, b : float
The endpoints of the integration interval.
tck : tuple or a BSpline instance
If a tuple, then it should be a sequence of length 3, containing the vector of knots, the Bspline coefficients, and the degree of the spline (see
splev
).full_output : int, optional
Nonzero to return optional output.
Returns: integral : float
The resulting integral.
wrk : ndarray
An array containing the integrals of the normalized Bsplines defined on the set of knots. (Only returned if full_output is nonzero)
Notes
splint
silently assumes that the spline function is zero outside the data interval (a, b).Manipulating the tcktuples directly is not recommended. In new code, prefer using the
BSpline
objects.References
[R108] P.W. Gaffney, The calculation of indefinite integrals of bsplines”, J. Inst. Maths Applics, 17, p.3741, 1976. [R109] P. Dierckx, “Curve and surface fitting with splines”, Monographs on Numerical Analysis, Oxford University Press, 1993.