scipy.interpolate.CubicSpline.from_bernstein_basis#

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

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

Parameters
bpBPoly

A Bernstein basis polynomial, as created by BPoly

extrapolatebool or ‘periodic’, optional

If bool, determines whether to extrapolate to out-of-bounds points based on first and last intervals, or to return NaNs. If ‘periodic’, periodic extrapolation is used. Default is True.