scipy.interpolate.PchipInterpolator.from_power_basis¶
-
classmethod
PchipInterpolator.
from_power_basis
(pp, extrapolate=None)[source]¶ Construct a piecewise polynomial in Bernstein basis from a power basis polynomial.
- Parameters
- ppPPoly
A piecewise polynomial in the power basis
- 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.