scipy.interpolate.UnivariateSpline

class scipy.interpolate.UnivariateSpline(x, y, w=None, bbox=[, None, None], k=3, s=None)

Univariate spline s(x) of degree k on the interval [xb,xe] calculated from a given set of data points (x,y).

Can include least-squares fitting.

See also

splrep, splev, sproot, spint, spalde

BivariateSpline
A similar class for bivariate spline interpolation

Methods

__call__(x[, nu]) Evaluate spline (or its nu-th derivative) at positions x.
get_knots() Return the positions of (boundary and interior)
get_coeffs() Return spline coefficients.
get_residual() Return weighted sum of squared residuals of the spline
integral(a, b) Return definite integral of the spline between two
derivatives(x) Return all derivatives of the spline at the point x.
roots() Return the zeros of the spline.
set_smoothing_factor(s) Continue spline computation with the given smoothing

Previous topic

scipy.interpolate.Rbf

Next topic

scipy.interpolate.UnivariateSpline.__call__

This Page