Expand description
Piecewise polynomials in the Bernstein basis, following SciPy’s BPoly: evaluation by de
Casteljau’s algorithm, derivatives, antiderivatives and integrals, conversion to and from the
power basis, and construction from derivatives at the breakpoints (BPoly.from_derivatives).
On interval j, [x_j, x_{j+1}), with s = (x − x_j)/(x_{j+1} − x_j), the polynomial is
Σ_a c[a][j] b_{a,k}(s) with the Bernstein polynomials b_{a,k}(s) = C(k, a) sᵃ (1 − s)^{k−a}.
The coefficients are the control points of a Bézier curve: the polynomial passes through
the first and last and stays in their convex hull.
See the book entry Smoothing splines with automatic knots.
Structs§
- BPoly
- A piecewise polynomial of degree
konmintervals in the Bernstein basis.