TensorSpline
Create a tensor-product spline from canonical solved state.
Declaration
self = TensorSpline(options)
Parameters
options.Sspline degree scalar or vector with one entry per dimensionoptions.knotAxesordered SplineAxis array defining the tensor-product basisoptions.xitensor-product coefficient array or vectoroptions.xMeanoptional additive output offsetoptions.xStdoptional multiplicative output scale
Returns
selfTensorSpline instance
Discussion
Use this low-level constructor when you already have the spline degree, knot-axis objects, and coefficient state. For ordinary numeric knot-vector construction, use TensorSpline.fromKnotPoints(...).
The stored spline has the tensor-product form
\[f(x_1,\ldots,x_d) = x_{\mathrm{Mean}} + x_{\mathrm{Std}} \sum_{j_1,\ldots,j_d} \xi_{j_1,\ldots,j_d} \prod_{k=1}^{d} B_{j_k,S_k}(x_k;\tau_k).\] spline = TensorSpline(S=[3 3], knotAxes=SplineAxis.arrayFromVectors(knotPoints), xi=xi);
[Xq,Yq] = ndgrid(linspace(0,1,40), linspace(0,1,40));
values = spline(Xq, Yq);