evaluateFromPPCoefficients
Evaluate a cached piecewise-polynomial spline representation.
Developer documentation: this item describes internal implementation details.
Declaration
f = evaluateFromPPCoefficients(options)
Parameters
options.queryPointspoints at which to evaluate the splinesoptions.Cpolynomial coefficients to be used in polyval, size(C) = [length(tpp)-1, K]options.tpppiece-wise polynomial intervalsoptions.Dnumber of derivatives
Returns
farray the same size as queryPoints
Discussion
On interval i, let u = queryPoints - tpp(i). This function evaluates
where the interval coefficients \(c_{i,m}\) are stored in C.
xq = BSpline.evaluateFromPPCoefficients(queryPoints=tQuery, C=C, tpp=tpp);
dxq = BSpline.evaluateFromPPCoefficients(queryPoints=tQuery, C=C, tpp=tpp, D=1);