bundles / scipy latest / scipy / interpolate / _interpolate / BPoly / _raise_degree
staticmethod
scipy.interpolate._interpolate:BPoly._raise_degree
Signature
staticmethod
def _raise_degree ( c , d ) Summary
Raise a degree of a polynomial in the Bernstein basis.
Extended Summary
Given the coefficients of a polynomial degree k, return (the coefficients of) the equivalent polynomial of degree k+d.
Parameters
c: array_likecoefficient array, 1-D
d: integer
Returns
: arraycoefficient array, 1-D array of length
c.shape[0] + d
Notes
This uses the fact that a Bernstein polynomial b_{a, k} can be identically represented as a linear combination of polynomials of a higher degree k+d:
b_{a, k} = comb(k, a) \sum_{j=0}^{d} b_{a+j, k+d} \comb(d, j) / comb(k+d, a+j)
Aliases
-
scipy.interpolate.BPoly._raise_degree