terminatedKnotPoints
Ensure each knot vector has S+1 repeated knots at its boundaries.
Declaration
knotPoints = terminatedKnotPoints(knotPoints, S)
Parameters
knotPointsknot vector in 1-D or cell array of knot vectorsSspline degree scalar or vector with one entry per dimension
Returns
knotPointsterminated knot sequence
Discussion
Use this helper when you want to terminate a manually supplied knot sequence before fitting. In 1-D it accepts a numeric knot vector; in higher dimensions it accepts a cell array with one knot vector per dimension.
This operation increases the multiplicity of the first and last knot values to S+1, which makes the spline basis terminate at the grid endpoints.
knotPoints = ConstrainedSpline.terminatedKnotPoints(knotPoints, 3);