Mathematica通过一系列点拟合B样条函数的方法

时间:2024-10-12 15:38:10

1、给出一系列平面上的点:a = RandomReal[{-5, 5}, {36, 2}]

Mathematica通过一系列点拟合B样条函数的方法

3、函数的定义域是0到1;函数的输出值是一个二元向量:f[0.366]

Mathematica通过一系列点拟合B样条函数的方法

5、加画f的图像:Show[Graphics[{Red, Point[a], Green, Line[a柯计瓤绘]}, Axes -> True],ParametricPlot[f[t], {t, 0, 1}, PlotStyle -> Blue]]

Mathematica通过一系列点拟合B样条函数的方法

7、拟合出B样条函数f,但是不封闭:f = BSplineFunction[a, SplineClosed -> False]

Mathematica通过一系列点拟合B样条函数的方法

9、拟合封闭的B样条函数f:f = BSplineFunction[a, SplineClosed -> True]

Mathematica通过一系列点拟合B样条函数的方法
© 2025 长短途
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com