{ } Raw JSON

bundles / scipy 1.17.1 / scipy / interpolate / _ppoly / evaluate_bernstein

fused_cython_function

scipy.interpolate._ppoly:evaluate_bernstein

Signature

def   evaluate_bernstein ( c x xp nu extrapolate out )

Summary

Evaluate a piecewise polynomial in the Bernstein basis.

Parameters

c : ndarray, shape (k, m, n)

Coefficients local polynomials of order k-1 in m intervals. There are n polynomials in each interval. Coefficient of highest order-term comes first.

x : ndarray, shape (m+1,)

Breakpoints of polynomials

xp : ndarray, shape (r,)

Points to evaluate the piecewise polynomial at.

nu : int

Order of derivative to evaluate. The derivative is evaluated piecewise and may have discontinuities.

extrapolate : bint, optional

Whether to extrapolate to out-of-bounds points based on first and last intervals, or to return NaNs.

out : ndarray, shape (r, n)

Value of each polynomial at each of the input points. This argument is modified in-place.

Aliases

  • scipy.interpolate._ppoly.evaluate_bernstein