Interpolation of the points with a Bspline of degree n
function interpolation 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 Data spline(ndim = size(points, 2), ncontrol = size(points, 1), degree = degree) "Bspline in a form which can be quickly interpolated"; end interpolation;