SciPy

This is documentation for an old release of SciPy (version 0.17.1). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.interpolate.PPoly.from_spline

classmethod PPoly.from_spline(tck, extrapolate=None)[source]

Construct a piecewise polynomial from a spline

Parameters:

tck

A spline, as returned by splrep

extrapolate : bool, optional

Whether to extrapolate to ouf-of-bounds points based on first and last intervals, or to return NaNs. Default: True.