ppCoefficientsFromSplineCoefficients
Convert spline coefficients into piecewise-polynomial interval coefficients.
Developer documentation: this item describes internal implementation details.
Declaration
[C,tpp,Xtpp] = ppCoefficientsFromSplineCoefficients(options)
Parameters
options.xispline coefficientsoptions.knotPointsspline knot pointsoptions.Sspline degreeoptions.Xtpp(optional) splines at the points tpp
Returns
Cpolynomial coefficients to be used in polyval, size(C) = [length(tpp)-1, K]tpppiece-wise polynomial intervals, size(tpp) = numel(knotPoints) - 2*S - 1Xtppsplines at the points tpp
Discussion
This helper rewrites the spline as local Taylor data over each interval. If u = t - tpp(i) on interval i, the cached representation satisfies
where the rows of C store the coefficients \(c_{i,m}\) in the order expected by polyval after the factorial scaling used in evaluateFromPPCoefficients.
[C, tpp] = BSpline.ppCoefficientsFromSplineCoefficients(xi=xi, knotPoints=knotPoints, S=3);
xq = BSpline.evaluateFromPPCoefficients(queryPoints=tQuery, C=C, tpp=tpp);