Prior to version 8, Mathematica included a SplineFit function that could be used, for example, in the form:
dat = RandomReal[{}, {5,2}];
SplineFit[dat, Cubic]
(Prior to version 7, SplineFit was part of the separate standard add-on package Splines.)
How can one reproduce the result with the current version of Mathematica, now that SplineFit is gone?
SplineFitin my situation (https://community.wolfram.com/groups/-/m/t/1636443) using currently built-in, high-level functions. – murray Mar 21 '19 at 01:23BSplineCurve[]; I suppose that's what you want? – J. M.'s missing motivation Mar 21 '19 at 01:36SplineFitis not gone. I can still runNeeds["Splines`"]; dat = RandomReal[{}, {5, 2}]; SplineFit[dat, Cubic]and I get a functioningSplineFunctionobject. Why re-invent the wheel then? – MarcoB Mar 21 '19 at 13:57Splinespackage, which is somewhat hidden in the current version. the docs, at pageSpines/SplineFitsays, "As of Version 7.9, some of the functionality of the Splines Package is now built into the Wolfram Language kernel". But it doesn't say just what substitutes forSplineFit. – murray Mar 21 '19 at 14:23SplineFit. Exactly what are those methods? All I need is an implementation ofSplineFit[{pts}, Cubic. I don't directly see how to useInterpolation(with optionMethod -> "Spline"). And I don't see how to exploit the several currently built-in spline-related functions, as they merely use the given points as control points rather than actually pass the (piecewise) spline through those points. – murray Mar 23 '19 at 14:05SplineFit[{pts}, Cubic]" - and that's what's in that answer. I only added the caveat that it isn't the best thing to use anymore. (See e.g. this answer for one of the "better methods".) – J. M.'s missing motivation Mar 23 '19 at 14:09