SciPy

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

scipy.interpolate.ppform.from_bernstein_basis

classmethod ppform.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.