BSpline
Create a one-dimensional spline from degree, knots, and coefficients.
Declaration
spline = BSpline(options)
Parameters
options.Sspline degreeoptions.knotPointsknot pointsoptions.xi(optional) spline coefficientsoptions.Xtppoptional cached basis values at piecewise breakpointsoptions.xMeanoptional additive output offsetoptions.xStdoptional multiplicative output scale
Returns
splineBSpline instance
Discussion
Use this constructor when you already know the terminated knot sequence knotPoints and the coefficient vector xi.
The constructed spline is
\[f(t) = x_{\mathrm{Mean}} + x_{\mathrm{Std}} \sum_{j=1}^{M} \xi_j B_{j,S}(t;\tau).\] knotPoints = [0; 0; 0; 0; 1; 1; 1; 1];
xi = [1; -0.5; 0.25; 0];
spline = BSpline(S=3, knotPoints=knotPoints, xi=xi);
x = spline(linspace(0,1,50)');