valueAtPoints
Evaluate the tensor spline or a mixed partial derivative.
Declaration
values = valueAtPoints(self,X1,...,Xn,options)
Parameters
selfTensorSpline instanceX1,...,Xnmatching-size query locations as one array per dimensionoptions.Dderivative order per dimension
Returns
valuesspline values reshaped to match the query input
Discussion
This is the primary explicit evaluation method. Supply one matching-size query array per tensor dimension. Paired column vectors give pointwise queries, while matching ndgrid arrays give gridded evaluation over a tensor-product lattice.
For derivative order vector D = [D_1 ... D_d], this evaluates
with xMean added back only when all entries of D are zero.
values = spline.valueAtPoints(xq, yq);
dFdx = spline.valueAtPoints(xq, yq, D=[1 0]);
[Xq,Yq] = ndgrid(linspace(-1,1,40), linspace(0,2,50));
F = spline.valueAtPoints(Xq, Yq);