#### Previous topic

scipy.interpolate.PPoly.from_spline

#### Next topic

scipy.interpolate.PPoly.construct_fast

# scipy.interpolate.PPoly.from_bernstein_basis

classmethod `PPoly.``from_bernstein_basis`(bp, extrapolate=None)

  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.