integralMatrixForDataPoints
Return the exact interpolation-to-antiderivative linear map.
Declaration
W = integralMatrixForDataPoints(dataPoints, queryPoints, options)
Parameters
dataPointsinterpolation sample locationsqueryPointspoints at which to evaluate the antiderivativeoptions.knotPointsterminated knot sequence for the interpolation basisoptions.Sspline degree of the interpolation basis
Returns
Wlinear map from interpolation values ondataPointsto antiderivative values onqueryPoints
Discussion
Use this expert utility when one-dimensional interpolation values are sampled on dataPoints and the zero-anchored antiderivative should be evaluated at queryPoints without constructing an intermediate spline object.
If y is the column vector of interpolation values and f is the corresponding exact interpolating spline on the supplied terminated knot sequence, then the returned matrix satisfies
W = BSpline.integralMatrixForDataPoints(t, tq, knotPoints=knotPoints, S=3);
valuesInt = W * values;