This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / interpolate / _interpolate / BPoly / _raise_degree

staticmethod

scipy.interpolate._interpolate:BPoly._raise_degree

source: build-install/usr/lib/python3.14/site-packages/scipy/interpolate/_interpolate.py:2359

Signature

staticmethoddef _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_like

coefficient array, 1-D

d : int

Returns

: array

coefficient 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