class scipy.interpolate.PiecewisePolynomial(xi, yi, orders=None, direction=None)[source]

Piecewise polynomial curve specified by points and derivatives

This class represents a curve that is a piecewise polynomial. It passes through a list of points and has specified derivatives at each point. The degree of the polynomial may very from segment to segment, as may the number of derivatives available. The degree should not exceed about thirty.

Appending points to the end of the curve is efficient.


__call__(x) Evaluate the piecewise polynomial
append(xi, yi[, order]) Append a single point with derivatives to the PiecewisePolynomial
derivative(x, der) Evaluate a derivative of the piecewise polynomial
derivatives(x, der) Evaluate a derivative of the piecewise polynomial
extend(xi, yi[, orders]) Extend the PiecewisePolynomial by a list of points

Previous topic


Next topic