chaosmagpy.model_utils.pp_from_bspline

chaosmagpy.model_utils.pp_from_bspline(coeffs, knots, order)[source]

Return a piecewise polynomial from a BSpline representation.

Parameters:
coeffsndarray, shape (M, D)

Bspline coefficients for the M B-splines parameterizing D dimensions.

knotsndarray, shape (N,)

B-spline knots. The knots must have the full endpoint multiplicity. Zero-pad spline coefficients if needed.

orderint

Order of the B-spline.

Returns:
coeffs_ppndarray, shape (K, P, D)

Coefficients of the piecewise polynomial where K is the order (order), P is the number of pieces and D is the dimension.

breaksndarray, shape (P+1,)

Break points of the piecewise polynomial.