fromData
Create a constrained spline fit from one-dimensional samples.
Declaration
self = fromData(t,x,options)
Parameters
tone-dimensional sample locationsxobservation values sampled attoptions.Sspline degreeoptions.knotPointsoptional one-dimensional knot vectoroptions.splineDOFoptional target number of splinesoptions.distributionoptional error model object for the fitoptions.constraintsoptional mixed SplineConstraint array
Returns
selfConstrainedSpline instance
Discussion
Use this factory for ordinary one-dimensional noisy-data fitting. It validates the shared sample vectors, then delegates to the general rectilinear-grid factory so the one-dimensional behavior stays aligned with ConstrainedSpline.fromGriddedValues(...).