Old package, works good
Needs["Splines`"];
testData =
{{10, 10}, {10, 20}, {10, 25}, {10, 27}, {10, 28}, {9, 26}, {8, 25}, {5, 20}, {3, 1}};
fFit = SplineFit[testData, Cubic];
ParametricPlot[fFit[n], {n, 0, Length[testData] - 1}, Epilog -> Point[testData]]
New spline package, how to make it work like the old one: passing each point exactly and naturally smooth
fFit01 = BSplineFunction[testData];
ParametricPlot[fFit01[n], {n, 0, Length[testData] - 1},
Epilog -> Point[testData]]
However,the fitting results are different: some points are not passed exactly, which is not what I need.
Comments
Post a Comment