Interpolation of the points with a Bspline of degree n. Do NOT return a Bspline struct. Return the the raw information of control points and knots.
function interpolation_raw extends Modelica.Icons.Function; input Real points[:, :] "[i,:] is point i on the curve to be interpolated"; input Real param[size(points, 1)] "parameterization of the data points (not necessarily in the range 0..1)"; input Integer degree(min = 1) = 3 "Polynomial degree of interpolation"; output Real controlPoints[size(points, 1), size(points, 2)] "Control points"; output Real knots[size(points, 1) + degree + 1] "knots"; end interpolation_raw;