SciPy

scipy.interpolate.Akima1DInterpolator.from_bernstein_basis

classmethod Akima1DInterpolator.from_bernstein_basis(bp, extrapolate=None)[source]

Construct a piecewise polynomial in the power basis from a polynomial in Bernstein basis.

Parameters:

bp : BPoly

A Bernstein basis polynomial, as created by BPoly

extrapolate : bool, optional

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