fromGriddedValues
Create a constrained spline fit from values on a rectilinear grid.
Declaration
self = fromGriddedValues(gridVectors,values,options)
Parameters
gridVectorsnumeric vector in 1-D or cell array of grid vectors in higher dimensionsvaluesarray of observation values on the supplied gridoptions.Sspline degree scalar or vector with one entry per dimensionoptions.knotPointsoptional knot vector in 1-D or cell array of knot vectorsoptions.splineDOFoptional target number of splines per dimensionoptions.distributionoptional error model object for the fitoptions.constraintsoptional mixed SplineConstraint array
Returns
selfConstrainedSpline instance
Discussion
Use this factory for fitting from rectilinear-grid samples, especially in two or more dimensions. In one dimension, prefer ConstrainedSpline.fromData(...). This method validates the gridded input, chooses the knot sequence, normalizes the constraint objects, solves the fit system, and then delegates to the cheap solved-state constructor.